Merge two case statements into one.