This is not particularly an automatic LLM-rewrite, as far as I can see.
Several patterns are notably rewritten to being Go-like.
I am sure there was some machine translation based on schemas, but there's a lot of real human thought here.