refactor(indexOF) Remove a now unused copy of the indexOf

Missed that one in #8847