Remove base class iterator category from directory iterators.