IMO it would be nice to just iterate once over the tickets and add the form to the respective form group?