Enhanced 'GenerateSwitchLabelsAction'.