Get rid of "switch/case" statements