[DependencyInjection] added a new Syntax to define factories as callables.