To replace or reconnect the wires of a device or installation.
To change the functionality of something by altering the parameters or logic.