Added ability to delegate interfaces to factories.