The agent extracted a shared helper and merged two callers' error paths
Two route handlers called the same upstream service, parsed the same payload, and looked almost identical. The agent read both, concluded the block was duplicated, and lifted it into one shared helper