Split land iteration into two functions, one which deletes ranges, the other which does not.