Refactored the BenchmarkCommand class to remove long methods

This bug was detected by SensioLabs Insight (rule # 36-033):

"PHP methods should not contain too much logic (i.e. less than 50 lines)"