You can access the screws holding the hub together with the 32t sprocket still in place (barely). The motor, axle, freewheel, and sprocket all come free together, leaving the external hub, spokes, rim, and tire behind.
Taking the wheel off the bike isn't too bad. You unplug the motor...