This reminds me of a full rewrite.
When a developer reimplements a complete new version of code from scratch, with an understanding only, a new implementation generally should be an improvement on any source code not equal.
In today’s world, letting LLMs replicate anything will generate average code as “good” and generally create equivalent or more bloat anyways unless well managed.
The world is chock-full of rewrites that came out disastrously worse than the thing they intended to replace. One of Spolsky's most-quoted articles of all time was about this.
https://www.joelonsoftware.com/2000/04/06/things-you-should-...
> They did it by making the single worst strategic mistake that any software company can make: They decided to rewrite the code from scratch.