Extract loop to item partial