Shotgun Surgery
Shotgun surgery occurs when a single change needs to be applied in multiple places. This can make the code difficult to maintain and error-prone.
Code :
Treatment:
Encapsulate the changes in a single class or method, applying the changes in one place