Removed TriggerStateRecord, state moved into TriggerRecord.