How about extracting it to a separate method? Basically, it's really similar to the loop above. I'm thinking if a small factory would be an overhead here :p