When Armenia announced that it was officially recognizing Palestine as a state, it cited the "catastrophic humanitarian situation in Gaza." But Yerevan's calculations had less to do with the war in the Middle East and more to do with the conflicts closer to home in the Caucasus.