Begin refactoring ApiStore to calculate its index.