The Israeli government could fix the problem by putting an end to the settler attacks in the West Bank and the blockade of Gaza in pursuit of a true two-state solution. The easiest way to isolate Hamas would be to fully and properly recognize and protect the rights of Palestinian civilians in a way that would offer them a better life away from Hamas influence. All they’re doing right now is a massive recruiting campaign for Hamas.