Builds an instance of T using the Container.
T
typedef Factory<T extends Object> = T Function(Container container);