rewire
re-wire
verb
To change or reorganise neural connections in a brain or a person's thinking.
"Therapy can help to rewire negative thought patterns."
verb
To replace or repair the electrical wiring system in a building or appliance.
"We need to rewire the old house completely."