Replaced GroupKey namedtuple with a class.