Do you think leave would have won without anti immigrant rhetoric? No doubt that lots of people had other motivations to vote Brexit but without some of the more scummy farage anti immigrant campaigning I dont think they break 50%.
Low wages + benefits system disincentivising people to have more than 2 children = reliance on migration to pay for growing retired demographic. People are slowly realising that now.