Refactors even listeners.