Move Function in the Refactoring catalog

ID: move-function-in-the-refactoring-catalog

Primary refactoring catalog entry, also named Move Method in the first edition. The example moves behavior to a context better suited to its responsibility. The 2019 solution uses the underlying design principle rather than requiring a particular later tool or library API.

New to topics? Read the docs here!