Gillian Keegan’s special adviser Mark Lehain will leave the role to head up a two-school academy trust in September.