LONDON (Reuters) - The author of the satirical memoir “How to Lose Friends and Alienate People” became the latest figure to embarrass British Prime Minister Theresa May on Tuesday, resigning from a watchdog for British universities over a history of misogynist tweets.

Toby Young quit his post on the board of the Office for Students, which is meant to help uphold standards in higher education, less than two days after May said he could keep it.

His resignation came amid a cabinet reshuffle meant to stamp May’s authority on the government but derided in newspapers as a shambles, after one senior minister quit rather than take a new job and another talked May out of changing his role.

Young, whose memoir of a failed stint as a showbiz reporter was made into a 2008 movie, had reinvented himself as an education reform advocate, helping found a school in London run by parents under a program introduced by May’s Conservatives.

But his appointment to the universities body was met by a barrage of criticism because of a history of sexist and inappropriate remarks in articles and on social media. A petition calling for his dismissal gathered more than 220,000 signatures.

In 2012, he criticized the “ghastly” need for schools to meet accessibility requirements for the disabled. He has also said women who “display a lot of cleavage shouldn’t then complain when men notice them”, described himself as a self-confessed pornography addict, and joked about being sexually aroused by images of hungry African children.

He has apologized for such comments, which he said dated to a career as a “journalistic provocateur” and did not reflect his commitment to education.

“My appointment has become a distraction from (the Office for Students’) vital work of broadening access to higher education and defending academic freedom,” Young said in a statement on the website of the Spectator magazine.

Robert Halfon, the Conservative chairman of parliament’s education committee, told BBC radio on Tuesday that Young’s appointment had been a mistake. His appointment “hadn’t possibly been considered with due diligence and I thought it was the wrong decision”, Halfon said.

On Sunday, May said Young should be allowed to continue serving even though she condemned offensive comments he had made in the past. But the issue had damaged her attempts to rebrand her Conservative party as more inclusive during the ministerial reshuffle, which began on Monday and is aimed at promoting more women, black and younger lawmakers.

The reshuffle was triggered by the resignation of May’s top ally in the cabinet, Damian Green, who was forced to quit after giving misleading statements about pornography on his laptop.

May, who lost her majority in parliament last year after calling a snap election that she expected to win in a landslide, has struggled to restore her authority over a party divided between supporters and opponents of a hard break with the EU.