Remove duplicate entry in switch statement