Revers index refactoring.