A file that contains many lines that are duplicated within the code base is problematic for a number of reasons.

Refactor files with lots of duplicated code to extract the common code into shared classes and assemblies.

  • Wikipedia: Duplicate code.
  • M. Fowler, Refactoring. Addison-Wesley, 1999.