It has always been understood government is a social contract. The individual cedes a measure of his natural law right to self defense to the government in return for impartial enforcement of natural law. The extent to which goverment refuses to enforce natural law is the extent to which said government has deviated from legitimacy.
When governments renege on their obligation to the terms of the social contract, the right to self defense devolves back to the individual.
Indeed.