It seems to me that you can do the same but with other means. Firstly not to accept new migrants, and secondly at the slightest violation of the law to deport those who are already in the country. And most importantly, you need to cancel the grant for migrants. Their living conditions should be the same as in their homeland. Then they will seek other countries to live in.
I have already posted about this many times. It is NOT possible to deport the criminal immigrants in most cases, especially if they hail from an "unsafe" country such as Somalia. The European Union laws makes it very difficult to deport refugees and migrants, who commits crime.
And what prevents to change the laws? When politicians need they change the laws without any problems. Why, then, there is the European Parliament? It seems to me that many politicians are happy with this situation. They always have a theme for PR in one way or another. To talk about migration easier than to improve the economic situation.