I want to install a commercial dimmer which has Edison outlets and is designed for par lights. The current track lights are hard-wired into junction boxes which run back to the breaker box. Can I rewire the Romex to a new junction box and wire-nut each wire to a heavy-duty stranded cord terminated with an Edison plug so that I can connect the lights to the dimmer?