Idea. They can develop all they want, only the government should be the one buying and selling weapons. That way if a government decides to sell weapons to genocidal maniacs, people can vote that government out.
This is functionally what already happens. The market to sell into for defense is almost entirely B2G, the only exceptions being places where the existing government is not very strong or centralized