Extract Method

Refactoring

Extract a code fragment into a new method whose name explains its purpose. The refactoring is a way remove code comments and create small methods.
Links
Books