Or you could do it the way that MIke Street did it for BA when Dan Air were taken over. You ignore pilot's contracts for LIFO and decide to keep those pilots that you need who are flying the aircraft you are keeping on the day of the take-over.
And then you create a whirlwind of problems which take years and years to sort out - in the courts and elsewhere.