Well, it kinda is? Teaching materials should show how to not refactor too.
Also have u seen refactors in clean code?
Guy refactors thread safe code by introducing static variables which make code not thread safe, but hey! At least it is a little bit shorter!