Remove redundant switch case