Could use the `ReferenceFactory` for better testability (see https://github.com/akeneo/pim-community-dev/blob/master/src/Pim/Bundle/DashboardBundle/DependencyInjection/Compiler/RegisterWidgetsPass.php#L26)