Radioman
I have a bunch of hacked (wired in) Appliance modules. Use a couple for fans just as you are asking about. I have found it beneficial to leave the NEUTRAL contact (Dan, are you listening?) on the female (receptacle) end attached to the PC board as it helps to keep the bottom of PC board anchored in the module housing. I use 16 ga stranded wire in red, white, and black colored insulation, so I will know what wire is doing what, a year after the installation. Unsolder the HOT and NEUTRAL input pins (these pins are not only soldered, but also staked to the PC board) and you now have some space to create an exit hole in the top of the module for Hot, Neutral and Switched wires. I also have a couple of drape motor applications where I took the wires out the center of the back of the module (in order to mount the module flush to the drape motor, without wires exposed) but that is more difficult to configure. A good temperature controlled soldering iron, Dremel tool, and Xacto knife make the mod easier. Anyone handled "Radioman" shouldn't have a problem.