The traditional solution to this problem is templating.
And here I thought it would be colors, so you can tell which code is on level A of abstraction (green) and which is on level B (red), at a glance.
And here I thought it would be colors, so you can tell which code is on level A of abstraction (green) and which is on level B (red), at a glance.