Remove index schema and refactor embedded index registration