How about the engineers who did Manhattan? Scientists and engineers have always been a part of wars, just like the other people.
https://en.m.wikipedia.org/wiki/List_of_Palestinian_rocket_a...
The fact, that majority of its population can enjoy relatively peaceful life is thanks to organizational, and technological superiority of Israeli military. Which depends on work of Israeli engineers whose motivation is therefore exactly the same: do military tech to stop anti-Israeli "Axis".
I would presume because they weren't sold the idea that what they were doing had any other express intent-purpose or plausible outcome for use even used by the people they worked for, which alone I think warrants a different group to compare this situation to.