They can and have! I always thought this was very cool. However, the current Mars rover problem is not a hardware problem, per se, it's a stuck-in-the-mud problem.
An elderly robot that walks with a limp that's stuck in the mud problem.;-)
The bad wheel that forced them to drive backward was a hardware problem. They should have designed it with 2 axes of symmetry!
I just love the hacking that space hardware designers are allowed to do ..
"oh, its already bagged up and installed on the rocket, we've got 2 years to fix it until its going to suffer 45 seconds of insane conditions, so just let it slide for now .."