since all annuled treaties apparently cost 15 ws, they can be used as an exploit to easily quit a war one is losing (i.e. by offering to annul several treaties, which the AI will accept). my suggestion is to weigh the ws cost according to how significant it is. for example military access to an OPM should be worth very low