Yup, you have discovered some unique challenges. HA has always had these. Did you know that the NEC prevents you from placing any electrical devices in your breaker panel, but how many of us have UPB couplers? O.K. you can put your hands down.
What I have done is just get an old power cord, hook the UFD/UFR black and white to it, and plug it in. You can do this anywhere, like your livingroom. Use a PLASTIC device, put it in program mode, run UPStart, give it a device number, then your done. You will never need to press the programming button again.
Go to Home Depot and buy a metal or blue plastic single outlet box that nails to a stud. YOU HAVE TO MOUNT THE UFD/UFR IN AN OUTLET BOX. If it should ever catch on fire, the lack of air in the box will contain it. You also HAVE to put a metal or plastic faceplate on this box. Tabs or no tabs is your choice, but it works better if you cut the tabs off and just stick it in the box then if you try to mount it behind the plate. The NEC also says that this box needs to be accessable, so, in can't be behind wallboard. I also wouldn't mount it under insulation. I'd mount it a few feet high on a vertical beam where you can access it. I find that with the tabs the faceplate doesn't fit secure, and remember that sealing the box thing to prevent fires. Unless you live in a camper, or have lots of earthquakes, I wouldn't worry if its just loose in the box. Its not going to be moving.
I don't know how big your fan is, but the total of all devices on the breaker can't exceed 80% of its load rating. In other words, you can't exceed 12A total or 1440 watts on a 15A circuit. Also, you can NEVER use 14ga. wire on a 20A circuit no matter what the power usage of the device you connect to it.
And romex is allowed in most but not all areas. Its perfectly acceptable if allowed but it does need to be secured to the studs. You just can't lay it there.