issue #20734: Some refactoring of functions that will be common to all transactions.