My thought was more that you could just use `itertools.group_by` to split the reverifications into 4 groups, and then pass the individual groups with the same names you already have them in to the template. It might just make this code shorter/cleaner.