Refactor datastore API to explicitly represent multiple index providers, e.g. VIEW and 2i (LSM).