Advisor behind Labour leadership change