Added repository factory and repository factory operation.