Simplify conditional logic in switch