Tehran is choosing state relations over ideological militancy, leaving its old proxy Hezbollah under greatly altered circumstances in Lebanon