Integers in switch/case
Better createHandler()