@classmethod
def triggers_by_table(cls, triggers):
    """Return dictionary from tables to triggers."""
    d = {}
    for trigger in triggers:
        table = trigger.tablename, trigger.policy, trigger.modal
        if table not in d:
            d[table] = [trigger]
        else:
            d[table].append(trigger)
    return d
