Simplify case statement