Moved transaction state handling into DynamoDB