Sentence:  During those overhauls the locomotives were also <WSD>rewired</WSD>, updated, and had any corrosion dealt with. 
Meaning of the word marked with <WSD> tags:  To replace or reconnect the wires of a device or installation.