Blow away that hilarious pile of ifs.

Also this makes it easier to add more events types, and readability is this thing, as mentioned on butts@romeo.