Reusing code for finding name of switch in ordering test.