Refactor FluentDOM\Query::index()