What's interesting is that every western nation has now adopted a strict immigration control policy yet Pakistan is simply expected to put up and shut up by housing hundreds of thousands of undocumented illegals within her own borders.
Nothing stopping the Pakistani government from "growing a pair" and booting out Afghans.
There is no war in Afghanistan now and so there is no reason they should not return to their country.