Refactor event order patch to use a newly introduced getListenerPriority() method on the EventDispatcherInterface