Refactoring (noun) : a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing the observable behavior of the software.
To refactor (verb) : to restructure software by applying a series of refactorings without changing the observable behavior of the software.