Prevent redundancy when creating event handling methods