make RegisterKernelListenersPass reusable