Maybe we can extract this conditional to a method like

```ruby
record.has_transactional_callbacks?
```

Doing this we can reuse it on `update_attributes_from_transaction_state`