Move repository natives to its own file. Extend with natives for indexes.