Useful exercise when programming: imagine your copy&paste doesn't work so anything repetitive/boilerplate actually has to be written out that many times by hand.
So you think about if it's really necessary, and either generalize so that it's not, or instead write out the rules by which each instance can be generated at build time rather than repeating yourself and calling that "source".