Delete repeated switch case.

#142 and #145 have repeated changes.