Short example of using the Extract Method refactoring for improving code logic and structure. The demo also shows error handling during the refactoring.