These types of contracts tying training costs to retention are not unique to the aviation industry. But normally only come into play if the individual self terminates their employment. That would be quite a lop-sided contract to be able to terminate someone without cause and also demand repayment of training costs.