My new helper commented that wire splices are not allowed within a residential panel box. Years ago my master electrician told me the same thing. One of my instructors in a code book class said that you can make all the splices you want in a panel box. I have never recognized an article in the code book that allows or disallows it.