Refactor-by-Pattern: Abstraction Assistant
The Problem
Developers often end up rewriting large portions of files for small feature variations because of fragile or missing abstractions. This is evident when LLMs generate near-duplicate files or when engineers add similar code paths repeatedly. Current IDEs and linters surface duplication but offer little guidance to create safe, minimal abstractions and migrations.