When replacing an electric panel it was customary for my trainers to install a piece of 2 inch conduit and feed all the romex through the top of the panel instead of using the half inch knockouts and putting individual wiring or pairs with the Romex connectors. Is it legal to stub a piece of 2 inch and feed all the wiring through that?
A different suggestion, when it can work in a situation, instead of bunches of small romex connectors.
I don't do much residential work, but when I do, I try to avoid a bunch of small connectors in the panel ends.
I like to punch a few large knockouts, and use large cable tomic's, such as used with SE and SER cable.
It takes a little planning, grouping and layout of existing cables, to decide what size holes to punch where, to get everything to fit nicely into the panel.
I try to do the same for the sill plates if I'm replacing cables, slightly oversized holes makes fishing in another one later, a bit less onerous later if needed.
But, in order to do this, the cables must be fanned out after panel exit, to avoid de-rating them due to bundiling.
And any oversize holes in the sill plates need to be fire stopped properly.
This sample was a relocation. Many of the original cables were too short to reach. So EMT was installed to the attic, where properly sized junction/pull boxes could be located. Then THHN conductors could be spliced to the short cables.
The new cables were installed through a single large connector, and fanned out in the space to allow the cables to disperse any heating during use. Stud nailer's, were toe screwed, to the studs to allow for fastening the conduit and the fanned out cables.
This wall only had foam and aluminum siding on the exterior, so nothing there to attach the meter and service riser to. So in the bay to left of the service panel, vertical flat faced studs were added around the pluming vent, to support the meter can, and the bottom of the pipe service riser. Threaded rod, nuts and washers were used to attach the meter can, and slightly stand it off from the siding to prevent crushing it and the foam sheathing.
Passed inspection no problem, and has held the drop up, during many an ice storm here, without a problem.
In old building rehabs, sometimes you got to get a bit creative.
This was the old panel, inside the kitchen cabinets.
Attic Splice Box