Why split out this event handler?