Extract a portion of code from a (probably long) method into a new one in order to improve cohesion and readability of the source.
TODO: explain mechanics
This refactoring is often automated by modern IDEs.
Martin Fowler: Refactoring: Improving the Design of Existing Software
Martin Fowler: Refactoring: Improving the Design of Existing Software
Discuss this wiki article and the refactoring on the corresponding talk page.