That approach works for software dev work too!
One coder at $dayjob had a “thing” where they wrapped every single block of code in a try-catch block. Thousands upon thousands of instances, enough to bloat the code volume 2x and slow down compile times.
I got an AI to write a cleanup tool that internally used a “compiler toolkit” (the Roslyn SDK) to mechanically and precisely parse the source and safely perform the substitution.
It ran for fifteen minutes, made about ten thousand edits, and halved the size the codebase with zero errors or side effects.