This is not possible via native API. We therefore use the event to fetch and add the relation. Relates: #8857
Provide Services.yaml to provide new DI. Also remove deprecated command registration and move them into Services.yaml.