Remove the complexity of transactions from the attributes-setting code.