Don't create a new tx for each pipeline step.
Minor refactoring.
We should be using a newer polyglot snapshot.