Move default action into switch statement.