I can understand an automated aesthetical refactoring, not too fare from what done naively by prettier and similar software, but is impossible for me to understand a comprehension refactoring done by AI (but I am biased :D).
In a talk I gave on refactoring, I used quotes from Italo Calvino and Sun Tzu, but I never would have guessed that it was They who taught me, better than anyone else, how to do refactoring. Here are some thoughts I have collected.