Do you actually realise any savings doing that? Pretty sure I never have.
Typically by the time I get around to upgrading, they've changed both the CPU socket and the RAM, so I need a whole new motherboard. And I certainly don't trust a 5-year-old PSU to run a higher-watt load at that point. So most of the time all I'm reusing is the case and maybe a couple of auxiliary SSDs (which aren't a major part of the cost)...