When removing and installing a flap alternate drive electrical motor, the manual tells you to put the flap in the up position. See AMM 27-51-59. But often it is not possible to put the flaps in up position due to other maintenance activities, no elec/hydraulic power available etc.
You can remove and install the flap alternate drive motor in ANY flap position because this motor has no internal control switches. The control is regulated by the flap switches in the flap control unit.