perf tools: Move branch option parsing to own file