Make case statement shorter