@Override
    public void remove() throws UnsupportedOperationException, IllegalStateException {
        if (!canRemove) {
            throw new IllegalStateException("Can not remove() an element after calling hasNext().");
        }
        it.remove();
    }
Create a deep hit iterator based on the given hit iterator.

@param it      The hits iterator to traverse.
@param ordered Whether the hits should be ordered.
container-search/src/main/java/com/yahoo/search/result/DeepHitIterator.java