Added repository factory.