Well, from a utilitarian point of view, if something, on average, hurts people, then restructing it can hardly be immoral.
Nationalism was an outgrowth of the French Revolution. But prior to that you had states, they just weren't nation states. Those states were far more restrictive of immigration and far more protectionist than the era of nation states that followed it. Because those states, practiced mercantlism and aimed to horde money, figuring that was how you enriched your country.
I know, but pre 19th century states took their legitimacy from something that was not national or ethnic solidarity. The concept of a state taking its legitimacy from nationalism was a construct largely used for political purposes. All I was saying was that the Nation State isn't a "natural" phenomena.