Added missing InMemoryFactory implementation