Fire first into the switch, and then into the exhaust fan, so that the switch can control the exhaust fan, but also in the case of damage to the exhaust fan, disconnect the switch, cut off the fire wire, safer operation. As shown in the figure below: