Abstracting a resource factory.
Abstracting a resource factory.