Quite a few people have just taken a wall switch, usually the GE fan control switch, and put the switch itself inside the fan canopy. Usually someone opts to do that because they don’t have a neutral at the light switch, but it could be used for a situation like you describe as well. There’s typically a lot more room inside the fan canopy then there is inside the switchbox, so the size of the Switch isn’t that big a deal.