Copy and paste often leads to code bloat. When reusing code from other modules, ask the following questions:
Is this code actually needed?
Is too much code being copied for the task?
Would it be better to abstract the function into a base class or helper module so it can be used from more than one place, rather than copy it?
Could the code be rewritten more efficiently for the required task, rather than copying something that is "close" to what is required?