Move higher level Index operations to IRepository

Fix #822