This reassigns `i` while removing it, is that what we want?