Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.

- Stackoverflow.com Wiki