Definition of Code refactoring
Code refactoring is a process that involves editing and cleaning up previously written program code without changing its functions.
The main goal is to make the code more efficient and maintainable, to prevent its "spoilage", namely code duplication, countless fixes, etc. Also, code quality deterioration can occur due to a developer’s writing style.