But maybe easier than it sounds.
All technology can be weaponized. It can also be de-weaponized.
One of my favorite late-night thought experiments, is "what would it take to turn an AK47 or an AR15 into a water pump?" .. the possibilities are endless. "How could a tank be turned into a bicycle factory?", another great one worth the effort to think about.
The only difference between peaceful technology and a weapon is the intention of the user. The very real spiritual intention.
De-weaponization starts with the human being. Those who think weapons are necessary must always take lesser priority than those who invent technology to make the lives of their fellow human beings better. There are so many examples of the tool-makers winning harder and at greater scale than the bomb-manufacturer. We wouldn't be here now if the balance was the other way - our world is however threatened by having this scale weighed heavily, by those who think murder is the solution to anything.
It's a spirit thing. Not spiritu-al, a spirit thing. What is the spirit of the designer? If they want to help humanity, it will be difficult technology to weaponize (although not impossible). It will be easy to de-weaponize, also.
We need to focus more on the spirit of help, and less on hurt.
Imagine if those F35 mounting pylons were used to drop field-portable water-purification systems directly where they are needed most.
Imagine if they could be used to drop a copy of archive.org, anywhere in the world, in any language.
Imagine if those ships were being used to bring power to the villages that need it most. Instead of glide bombs, we have glide libraries. Instead of cluster munitions, we instead drop cluster medical kits!
Oh, the glory to be had by those who would do this - the allies in the poor and weak of the world to be found! Imagine this happening, changing the intention from hate and fear, to respect and love.
All it takes is the spirit, a bit of imagination, and any and all technology can be de-weaponized.
It is the warrior narcissist who stands in the way of this. Disarm them too - smash their mirror: Drop books, not bombs!