Or these guys can stop harassing women in the workplace. The onus is not on the harassed to leave. It’s on the harasser to stop.
Also, no one asked you to make a suggestion or to solve a problem. But if you really want to “help,” then take a good look at your own behavior — what you silently condone, what you openly excuse, who you dictate is responsible… It’s you, dude. You’re part of the problem.