Remove unused event handlers.