Running a couple of "scan for potential refactors"/"any duplicated code" prompt threads is already a long way there.