Remove large switch block

[Slower](http://jsperf.com/switch-contains/3) (albeit in browsers), but cleaner.