Remove the getEventHandler function