Think about how to construct the iterator while the removals are being performed.