refactor IntegerIndex: extract RangeIndex