What I think you want to say is that the "identity" of modern Spain and Portugal has been shaped and defined by its opposition to the moor/muslim/north-african identity.
At least be coherent.
I know this cause I'm one, and I'm Portuguese.
Not every Pereira or Coelho is descendent of new Christians. Some sure, but definitely not all.
I was honestly mostly thinking about Spain and added Portugal assuming they would be the same from the perspective of identity. I stand corrected.
Later Medieval-era Spanish identity was anti-Moor but not always was the case. Keep in mind that the country of Spain did not exit until the 1500s.