I'm resurrecting this thread because I finally got around to doing this.
This was for practice only, so I didn't replace the housing, just the shifter cables. Lots of dust inside cable box, so I cleaned that out. As Andre noted, tightening headless screws on cable pulley mangles cable ends, after which they won't fit into tiny holes on cable pulley, so make sure everything is setup correctly before tightening. It would also be wise to superglue ends of cables immediately after cutting, to prevent fraying. I managed to bungle things the first time, by forgetting to install the cable adjusters before tightening the headless screws. Since I had extra cables on hand, I simply cut replacements.
I also pre-cut spare cables for my repair kit, in the obvious way: install cables in shifter, measure, cut, superglue frayed ends, remove from shifter, place in repair kit. Spare cables weigh about 25g. Cable housings are slightly different lengths, so pre-cut cables are not interchangeable. To know which pre-cut cable is which, I painted head of gear 1 cable black. I also cut 200mm of cable for repair kit, to allow field measurements, in case I forget about black colored head or black coloring wears off somehow. I regret not cutting two sets of pre-cut cables, just in case I bungle the field replacement procedure.
Dave Whittle is a more experienced bicycle mechanic than me. Here's an idiot's guide to what can be lost while replacing the cables: cable stoppers, ferrules, cable box torx screws, headless screws for cable pulley. I did drop the cable stoppers, but there were easy enough to find. Thankfully, I was smart enough not to unscrew the headless screws all the way, because these tiny screws could be very difficult to find if they rolled far, especially during field replacement. I was also careful when cleaning and regreasing the cable box torx screws. The ferrules didn't come undone during the replacement procedure, but this is another thing to watch out for.
I wouldn't go so far as to call this an odious job. It's simpler than an oil change. And I strongly recommend you practice this procedure at home rather than trying to do it for the first time in the field on a long tour. Practicing at home is also the only way to get pre-cut cables for your repair kit.