Removed unwanted cases in a switch.