added in-memory repository factory, removed redundant methods