I understand the situation as:

-War is declared
-Both sides work on killing the province
-After province is removed, both sides start warring


That's illegal.