Code refactoring consists of changing the structure of the code without changing its functionality. The term refactoring is currently used by software development industry to refer to this process.
But what about the verb refactor? Does it exist in this context? Can I say, for example:
After two weeks, I finally refactored the code of this library.
Tell the management that we can't work on the spaghetti code like this. We must refactor it first, which will take a few months.
By the way:
Microsoft Word spell checker accepts the term refactoring, but considers refactor as a mistake, suggesting refractor, which has nothing to do with refactoring.
Wikipedia avoids using the verb refactor and prefers using combined terms as perform refactoring.
When searching for pages containing refactor but not refactoring, the first results are either using refactor as a proper name, like a name of a product, or have nothing to do with software development.
Other sources are not helpful. Spell checker in Chrome considers refactoring as an invalid word. The same is the case with Google Translate and several other online translators.