International agreements on refugees were crafted after WWII as an after-the-fact response to those events, when "refugees" were relatively small numbers from a small number of countries.

No one then anticipated a time when third world populations would want to flee their own countries en masse to take refuge in a handful of western countries.

The system cannot accommodate such massive immigration, and needs a serious overhaul, now.