Towards the end of this video there’s a terrific discussion of the point at which DRYing out the code any further would just make it harder to understand.
I was also amused by the quote:
I have downloaded much of my brain into emacs muscle memory.