I've done it both ways, wondering which is correct lol. Some may say wiring up to the point of termination is under nec purview and subject to wiring methods, others say you can strip a couple arm lengths of mc, throw a connector on it, fish it in into the unit and throw on a locknut on inside the unit and have the conductors float in the unit with the factory wiring.
What's the right way to do this?