Use a set() instead of a list in formats.base.group() to ignore any
duplicate values when grouping