Sorry for mispelling that french author's name (Antoine de Saint-Exupéry) for the sake of a play on words related to XP.
He used to say (free translation by myself): "Perfection is reached not when there's nothing more to add but when there's no more to take out"
I guess it applies very well to programming in general and especially when refactoring (XP-minded ;-).