Of course. When it comes to debunking claims of a white Europe, medieval people didn't think of race as we do today, and their cities were centers of trade and multiculturalism. But when it's time to explain the documented homogeneity at the start of the 20th century, they turn into racist xenophobes, whose ideas of race match present-day ones.
But I will grant you that the reconquest of Spain from the Moorish invaders probably did reduce the diversity of Spain. I guess the native Spaniards didn't appreciate their new rulers? Though it's strange to call a massive military effort against one of the largest colonial empires at the time an "eviction".