As mentioned in one of the other PRs, let's find a way to reuse the code for retrying the transactions. _Originally posted by @bajtos in https://github.com/filbeam/worker/pull/324#discussion_r2432671214_