[tor-commits] [onionperf/master] Splits tor configuration into its own function