Indeed it is messy. But “removing” Hamas from power is about as easy as “removing” Bibi and his cabal from power. They feed off each other, and blame each other just enough to sway their populace into letting them stay in power.
The problem isn’t as easily fixed as “just take Hamas… and put it over there”.