Refactor switch statement