Simplify InMemoryCollection a bit.