Firms face greater hurdles when trainee contracts end