I want to share a different method -
I have been keeping Tenebrio molitor for years with no need to separate pupae from the colony.
The enclosure is a plastic storage container, with a mesh top (to prevent mold). As substrate, I use BRAN ONLY. I have seen people keeping them in oatmeal or rolled oats, and I have no idea why. They don't even seem to like eating this stuff. Whereas with bran, they consume it very well, and reproduce by the millions. There will always be some minor cannibalism of fresh pupae (about 2%) but this can be minimized by adding a piece of vegetable once a week for moisture. I use carrot, apple, zucchini or cucumber pieces and bell pepper's "head" for this purpose. When we cook corn I toss the empty cobs in the enclosure and the mealworms go CRAZY after this stuff (they also use it later as an egg-laying substrate). I do not let the temperature fall under 20 degrees C (68F). Every 3 months I need to add some new bran, but that's about it.
When I moved from Israel to Canada I had to start a fresh colony. So I took 10 adult beetles from my lab, and put them in the above conditions. Afetr a 90 days I had 20 times more beetles than my lab colony, in which the mealworms are kept on oatmeal...