- Introduce LayoutContext to bundle 8 accumulator params into 1 object - Extract computeLayout (261 lines) into 6 focused sub-methods: buildNodeIndex, partitionNodes, createElkRoot, createElkEdges, postProcessDoTrySections, extractLayout - Consolidate duplicated DO_TRY handler iteration via orderedHandlerChildren - De-duplicate ELK root configuration (main + handler roots) - Add DO_TRY test cases for section ordering and uniform width - Clean up orphaned Javadoc comments No behavioral changes. 882 → 841 lines. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>