Duplicate to decouple
often it is more valuable to proceed independently, not being forced to wait for others or to discuss with anybody.
This is a key arguent to avoid common code portions. Shared code implies an outside resistance against changes.
While reuse is considered a great concept, in daily life it hurts. At too small a scale it is an obstacle rather than a support. Go for reuse at a large scale, reuse componenents that would take you much (much!) longer to rewrite than to reuse.
If it is a quick thing, just do it again, yourself in control.
However, mind this:
* Don't repeat yourself * Implicity coupling is also coupling
One day you'll find that you have to synch with all the other code portions that you just got rid of by your duplication. While you got rid of your in-progress dependency, it is still there on a larger scale.
So do yourself a favour and keep track of your duplications. I like the idea of a debt board for this.
Duplications: they are worth doing, and they are worth remembering.