I am trying to install a WiFi connected smart switch to control a ceiling light. The wall box is too shallow to accommodate this, so I need to install it inline. To do this, I need to move the circuit so I can place the smart switch in an accessible location for maintenance
What approved methods could I use to splice and extend this wire? Using a junction box seems the obvious choice, but I'm wondering what else I could use.