Move record-event helpers to Task.