Description
It indirectly injects InstanceIdManager which require a fully initialized XWiki install to be initialized and pass on this requirement to anything that inject it.
It's a bit of a pain to not be able to just inject ReplicationInstanceManager in a listener so it would be better to improve that at a lower level (especially since InstanceIdManager is actually very rarely used).
The easiest workaround is to inject it through a Provider (or to use ComponentManager#getInstance when needed).