Make Transaction.commit() not take TransactionData as a parameter