Try as you might, you can't yet take the person out of the equation, tech-friend. Not yet, anyway.
This is simply solved. MUCH more stringent screening of crew for warning signs of mental disturbance/political ideology which is, eh, shall we say "worrying"? I mean, no one likes Grosse Bruder, but the FBI (in the US, and I suspect the analogous agencies in other Western countries) investigates people who work in nuke plants before they're hired. Up to and including visiting their high school teachers and acquaintances to see what sort of things didn't come out in the hour long interview. There are JANITORS who were strapped to a polygraph at some point or another, but if you've an ATP and a willingness to work for poverty wages, congrats, you're an airline pilot!