The new motor is mounted near by, and the old one left where it is. You may, however, have to length both the hoses and the electrical wiring to the motor to reach its new position.
Cars with electrically operated windscreen washers sometimes have a switch controlling the motor...