Migrate to ListenerRegistry.create()