[FrameworkBundle] make RegisterKernelListenersPass reusable

Bug fix: no
Feature addition: kinda
Backwards compatibility break: no

When I create a new event dispatcher for my applications, I would appreciate this code to be reusable.