That's why it's nice to have 2 or more females in there to help out.
Some of my moms will haul to the other side of the tank dragging babies with her, others will fight till the end. I found it was easier to remove the parents first like when you are cleaning the tank and then do what you need to do. I like looking at the sex while doing maintenance.