:golf: of TransactionMiddleware code