A senior member of the West Midlands Mayor’s team who played a major part in his election has quit her role.