A very minor cleanup for parseEvent().