@classmethod
def update(cls, key, value, accumulator):
    """ Update the accumulator for the period. For updating only the key,
        override update_key instead.
        """
    accumulator[key] = cls.update_key(value, accumulator[key])
    return accumulator
