If the junction box on a recessed light is too small, is it okay to use a box spacer to add a second junction box to it? This would allow adding a second junction box, that pulls down in the exact same way as the junction box on the recessed light itself.
The wiring that would go in the box would be (if there wasn't a second box): 4 wires for what used to be a two switch fan. This will control 2 zones of recessed lights. 2 wires and a ground go out to another zone of lights 2 wires and a ground go out to a light on the same zone 2 wires and a ground go out to another light on the same zone (the light was in the middle) 2 wires go to the can light itself.
It think that is 12 14 gauge wires for box fill calculation, and the largest junction box I can find on a recessed light housing is about 21 cu. in.
With the box spacer a 30.3 cu. in. 2 gang junction box could be added to handle all connections except the can light itself.
It would be just as accessible as if all the connections in the can light's junction box, as the new junction box would held by the box spacer.
United States. Looks like city uses nec 2017..