Revert "Indices with templates WIP"

This reverts commit f556f2d63b897f8ef9e4c588bf6cb4099691872d.