Easier said than done, though. Hamas has popular support from the Palestinians so “removing” them isn’t as simple as just killing or imprisoning their current leaders, if nothing changes the Palestinians will just put new equivalents back in charge. Even if the specific name “Hamas” isn’t being used it’ll be the same thing under the hood.
The overall situation needs to change somehow, to change what the people want out of it. I have plenty of ideas, of course, but I’m no expert and have no influence so I guess we’ll just have to wait and see what happens.