Moving onPhaseChange from EventDispatcher to seperate module