Or you can just not give squatters any particular rights.
Unfortunately, that is not enough. The courts and law enforcement must also be given a clear and peremptory directive to remove squatters at the request of the owners.