verb: (programming) To rewrite existing source code in order to improve its readability, reusability or structure without affecting its meaning or behaviour.
verb: (writing) To rewrite existing text in order to improve its readability, reusability or structure without intentionally affecting its meaning. Similar to, but sometimes involving more extensive restructuring than, copy editing.
noun: (programming) The process by which source code is refactored.