Refactoring EventListener priority