TUPE is something of a minefield.
TUPE would define it as one SAR company handing it over to another SAR company in the same location. The RAF and RN are not SAR companies. They are fighting services and the pilots are military officers who could be sent anywhere.