ISIS' territorial control in Iraq and Syria is eroding.