Replace deprecated "with_items" with loops

No match.