How is your refactoring clean ? Lmao if this is clean code I'm the Queen of england...
IMHO the core problem of the situation described in the article is that the guy simply rewrote a piece of code without before talking to the author/maintainer/owner of that piece code.