Repair != Green
Just because you can repair something, does not make it green to do so.
For example, you replace the battery. If you just chuck the old one into landfill, not exactly green.
Has the replacement battery from Dodgy Dave's Emporium been produced in a factory with zero environmental standards?
Have those other parts been made in some back street factory where they just lob the failures and left overs into the nearest river or onto a bonfire?
Is that old device actually using so much power, it would be more eco friendly to actually just replace it (old servers spring to mind).