engine-refactor: move Index::factory() to EngineFactory::createIndex().