When otter is converted to have non-global state as well, this should be changed to import with_transaction_id from otter.