Refactoring a 500-Line Method with the Pipeline Pattern

Turn unreadable procedural chaos into composable, testable, self-documenting code.