It would take some work to write a program to prevent most of this, but it could be done fairly easy by classifying those players respective groups and mixing the groups on the tournament sheet, so it doesn't happen so early in the tournament.
It's a good call that you brought it up. I think...