This is defined as Malaga Airport (AGP) and Barcelona-El Prat Airport (BCN). Codes like Barcelona-El Prat Airport are often used to just call airports uniquely.