B-58092 refactoring directories and factored out replicated datastore methods from Datastore iface