Make selection of processor a bit more elegant.
As mentioned in !5 (comment 5658477) and !5 (diffs, comment 5658486) it would be good to replace the series of branches that selects which processor is used based on the configuration with a string --> function map.