The way other professions do this is by burying trainees with debt and then writing off debt if they stay.
See Revature.
See Revature.