Some years ago I was told about a study into code reuse. Apparently it was found that, on average, programmers have a 7 minute window when searching for code to reuse. If th
Refactor mercilessly and hope for the best.
Update (4 years later and hopefully wiser)