Remove closure over a range iterator.