Add feature to inject a Provider for lazy instantiation of dependencies