You're right in saying that there's a major challenge in family law.
Every day, we see that judges often think that violence is committed against women and that there are no consequences for the children if there's no direct violence. They also think, wrongly, that the violence stops at the moment of separation, whereas that's often when it becomes most dangerous.
We have to establish a dialogue between the penal system and the family law system. Family law must acknowledge that the presence of domestic violence is dangerous for both mothers and children, and measures must be put in place. We often hear about joint custody, for example. This is ultimately a situation that very often requires parents to stay in touch for the sake of the children, which increases the number of opportunities for controlling spouses to exercise violence against their former partner or against the children.