Frances Frei, who was hired to fix what ailed Uber's broken culture and put its controversial CEO and co-founder Travis Kalanick on the right path, is leaving the company. She will be working on a new leadership development program for companies, aimed at women and underrepresented minorities, before returning to Harvard Business School.

You might imagine she got some pretty good examples for her work at Uber, which had been Silicon Valley's most obvious version of toxic culture. Not surprisingly, the ever-positive Frei did not see it that way, noting that the culture journey at Uber has been an important one.

"When I got here, my goal was to train and teach executives how to manage better, but it became super apparent that the training needed to go way beyond that," she said in an interview today. "As soon as the executive team was calmer, I turned my attention to 3,000 managers whose jobs grew well beyond their skills, which I think was the real work."

Over her tenure, Frei said she worked with 6,000 employees, who participated in the Harvard executive education program she created. And now, with Kalanick ousted amid much drama at the car-hailing phenom and new, more experienced executives in place, the need for the high-profile academic to coach its staff has become less critical, although Uber said she would remain an adviser and would continue to teach the Harvard program to its staff.

Read more from Recode:

Here's who owns everything in Big Media today

Ford is setting up for an autonomous ride-hail and delivery business in Miami

Driverless cars can operate in California as early as April

Frei was hired last June — yes, I know, it seems like an eon ago — as SVP of leadership and strategy, brought into the company to help manage the unmanageable Kalanick (she used the nicer "coach and complement" today, natch!).

Frei — who has had a brutal commute to San Francisco from Cambridge, Mass., where she lives with her wife and children — morphed into that broader charge, doing everything from training managers and top executives to helping HR head Liane Hornsey with recruiting and creating a zero-tolerance policy on sexual harassment.

The author of "Uncommon Service: How to Win by Putting Customers at the Core of Your Business" had been consulting with Uber for several months before she was hired, and said in an interview with me last year that she was enticed to come on full-time because of the major challenges the company faced.

"[Uber] feels for me, given all the bad circumstances, as sanded, and that it is ready to have some education painted on it," she said in an interview. "My goal is to make this a world-class company that can be proud of itself in the end, rather than embarrassed."

Most of that embarrassment did center on Kalanick, of course, and she was quite certain she could help him in a podcast interview with me — in which she played Pangloss and I played pre-ghosts Scrooge — soon after she arrived. That task was not for the faint of heart, since the startup he had crafted had been infamous for its toxic pirate culture that included numerous allegations of sexism, ethical corner-cutting and a take-no-prisoners approach.

As I wrote when she arrived:

Well, Frances, welcome to your biggest challenge ever. That would be Uber of San Francisco, which has been mired in a burgeoning set of controversies around a range of issues that erupted after allegations made in an explosive blog post by former engineer Susan Fowler about sexism and sexual harassment. Which is to say that a deeply inexperienced, siloed and yes-men management and a culture crack-addicted to breaking the rules, even the good ones, has led to a variety of indiscretions and outright bad behavior that have gone unchecked for far too long. And it's not just sexism and sexual harassment that rears its always ugly head, but also a sense that too many of those above are just as flawed as those below. Which leaves the feeling that there is no one in charge who can stop it. If you read Fowler's piece carefully, it was much more about core management fuck-up-ery at the company, which seems to have been run in a "Game of Thrones" style, than about anything else. While the charges of pervasive sexism and too much sexual harassment are certainly serious, what ails Uber is a corporate structure that needs drastic overhaul. It's fair to point out that lots of Silicon Valley companies have had and continue to have these very same issues — from Google to Facebook to Microsoft to Apple. But none has those faults in the kind of unctuous quintessence you find at Uber.

That all changed after much internal and external drama. Kalanick was eventually ousted and replaced by former Expedia CEO Dara Khosrowshahi, who has since brought in a new executive team.

"I think with Dara leading, a lot of our biggest challenges are in the rearview mirror," said Frei.

One can hope — and there is no one I have met as hopeful as her, so fingers crossed.

Here are the memos that Khosrowshahi and Frei sent out to the staff at the all-hands meeting today about her departure. And below, you can enjoy the podcast of the interview I did with her.