Our troops had the same problem in Vietnam, trying to root out all the Northern commie Vietnamese. It's a no-win.
My read is that the locals should dump them. We can arm and train them as we did the Vietnamese. I hate the idea of American soldiers dying for a group of people who will, in the end, reject us and ask us the leave IMMEDIATELY. "Thanks and bye-bye now."
And we have the same problem as in Vietnam, we allow the enemy to hide behind borders and do nothing to kill them at their source.