Remove unnecessary event listeners.