A refactoring is a well-defined procedure for transforming code such that it changes structurally while it retains its functional properties.
Refactorings are typically applied in order to improve code quality.
Martin Fowler: Refactoring: Improving the Design of Existing Software
Discuss this wiki article and the term on the corresponding talk page.