Factor out the transaction executor construction so that we can have access to the raw BatchedSQLQueries type from within tests.
Factor out the transaction executor construction so that we can have access to the raw BatchedSQLQueries type from within tests.