PepsiCo’s CEO wants a taste of something new.

Indra Nooyi, 62, is stepping down as chief executive after a dozen years at the helm, the snack and soft drinks company announced on Monday. Nooyi has worked at PepsiCo for 24 years and pulled in just under $30 million in salary in 2016, making her one of the world’s most powerful and famous female execs. She will remain CEO until Oct 3., and chairman through early 2019. PepsiCo president Ramon Laguarta, 54, will succeed her.

“Today is a day of mixed emotions for me. This company has been my life for nearly a quarter century and part of my heart will always remain here,” Nooyi said in a statement.

Her upcoming departure leaves even fewer female CEOs leading Fortune 500 companies; the number of women chief execs plummeted 25% from 2017 to 2018, down to 24 from its previous high of 32, and making up just 5% of the elite list. Campbell Soup’s Denise Morrison left in May, and Hewlett Packard’s Meg Whitman and Oreo maker Mondelez’s Irene Rosenfeld have also departed recently.

Pepsi Chairman and CEO Indra Nooyi is moving on. (Dimitrios Kambouris/Getty Images)

Under Nooyi’s watch, the Gatorade and Mountain Dew maker boosted revenue 81% to $63.5 billion last year, and expanded into healthier products like hummus. But PepsiCo has seen beverage sales going flat as customers drink less soda, and Nooyi is reportedly exploring new opportunities as Pepsi pivots to support its core brands to keep up with Coca-Cola, whose CEO Muhtar Kent also left last year after almost a decade in charge.

Nooyi had been making moves to move on since last year, the Wall Street Journal added. She “felt she had accomplished what she set out to do, including diversifying the company’s portfolio, and wanted to leave when she was still young enough to pursue another opportunity,” the Journal reported.

Nintendo’s chief executive Tatsumi Kimishima also recently decided it was time to level up. He stepped down in June, after his success with the Switch console helped the video game giant more than double its revenue to $9.7 billion.

Japan’s Nintendo Co. President Tatsumi Kimishima recently stepped down. (Kazuhiro Nogi/AFP/Getty Images)

Sooner or later, most employees outgrow their positions. Take Jackie Williams, who recently celebrated her sixth year as the health unit coordinator in a Florida hospital, where she’s grown so adept at aiding the ICU nurses by fielding calls, managing visitors and ordering supplies, they call her “the mother bear.”

But she admitted to Moneyish that she’s just “not feeling it” anymore. “I asked myself if I was burnt out, but that’s not it. I love the people, and I love the field … but I’m frustrated and looking for more,” said Williams, 38. “I guess I have peaked.”

So she signed up for a six-week $55 class that will hone her Microsoft Word, Excel and PowerPoint skills to work toward being an executive secretary in the hospital. And now she’s excited to get to work again.

Peaking in your career or in your position can be a good thing early on, experts told Moneyish. You’re more marketable because you’re confident, enthusiastic and at the top of your game. But that peak can become a plateau if you get so complacent that your field moves past your skill set. Or you can get bored working on the same types of projects over and over again.

Career Contessa founder Lauren McGoodwin recommends paying attention to how coworkers and leaders in the company describe you. “Do they talk about you being a future leader there? Or do they say things like ‘we appreciate you here’ and ‘you’re an awesome worker bee’?” she asked.

The former signifies you’re seen as a mover and shaker, while the latter implies you’ve topped out. “And are you getting your fair share of awesome assignments and opportunities to raise your profile at the company?” she added. “These are all great questions for self-reflection.”

When you’re bored and at the top of your game, it might be time for a change. (Wavebreakmedia/iStock)

She suggests going to networking events to meet new people, or taking art or coding classes to shake things up. “I think sometimes we enjoy our work, but the routine takes over, which makes people feel bored,” she said. “Trying new things can get your creative juices flowing.”

McGoodwin also recommends seeing what other job opportunities are available in other departments in-house before moving to another company. She has a friend who transitioned from being a Hulu recruiter to joining the streaming service’s marketing department, for example, by having informational lunches with people in other departments to feel out which one would be the best fit. “She would say, ‘I love this company. I want to stay here, but I don’t think recruiting is where I want to build the rest of my career,’” said McGoodwin. Or if you’re considering a move in-house, seek out other workers who have made similar transitions, and take them out for coffee to pick their brains on how they pulled it off.

ALSO READ: Here’s when to gun for a promotion – and when to stay put at your current job

Kasey Bayne rapidly rose in her company’s marketing department in her mid-20s, advancing from marketing coordinator to manager in just a few years. But she found the work repetitive. So she left to pursue a career in sales, which meant starting at a lower level and salary than her old job. “Don’t be afraid to take a step back, especially if you want to try something new or get into a new field,” said Bayne. She now works in marketing at a tech company where she draws on both her sales and marketing experience, as well as doing some consulting work on the side.

She added that each new job led to a bump in pay; peaking at your position can mean capping your salary, too. “If you stay at one organization forever, they get comfortable with you, and you’ll get a bonus here or a 3% pay increase there,” she said. But you often can leverage for more money when going for a new job or a new title.

It’s easy to get bored when work has gotten too easy and repetitive. (Wavebreakmedia/iStock)

And be patient. Amanda Ponzar, 41, from Washington, D.C. also felt stuck after eight years working as a communications director. “Every year I was pushing the repeat button, and I was so busy with all of the repeat projects that I couldn’t even add anything, like taking on a new job or responsibility on top of that,” she told Moneyish.

But it’s taken her four years and three jobs to find her perfect position as the chief marketing officer at a community health charity. “It might take a while to find something else that is a good fit, and that’s OK,” she said. “I’ve made a couple of changes, and now I’m in a really great role.”

ALSO READ: Time to go? This is when to take a buyout, or jump ship after a promotion

McGoodwin added that you don’t have to shake up your position so fast if you are content. It took a lot of hard work to reach this sweet spot, so you should take some time to enjoy it.

“If you’re happy where you are, and you’re doing a great job, give yourself maybe three months to say, ‘I’m just going to spend this time being happy in my job,’” said McGoodwin, before reassessing whether you should shake things up. This could also be the time to work on side projects or personal passions that were tabled for your career advancement. “You probably won’t be happy like this many times in your life,” said McGoodwin, “so you may as well enjoy it.”

This article was originally published on May 2, 2018 and has been updated with Indra Nooyi.