The showrunners themselves have said they are adapting it for the modern age and changing it to reflect our world today...
Not sure why people argue against it when they clearly stated it would happen.
Biggest problem of it was that it came out of nowhere and was only done to make a statement and, as Triceron mentioned, prop Pharazon up.
It was just lazy and poorly done. Take something that people mock in the real world and have the character stand against it. Boom, easy. Established him as a "good guy" for now.
Changing it to elves rather than Halbrand, who he did have a beef with, made it even worse. I think that was done just so they could squeeze out some more sympathy for her.
They could've used "outsiders trying to take our jobs" and it would make more sense.