The San Francisco Giants, who are about to complete their second consecutive losing season, are shaking up the front office.

General manager Bobby Evans stepped down from the position on Monday and the team announced he'll be reassigned within the organization.

"I want to thank Bobby for his tireless work on behalf of the Giants," president and chief executive officer Laurence M. Baer said in a statement. "He played an important role in our team's success throughout his tenure ... We look forward to new leadership to continue our historic record of success."

Evans had spent the last 25 years in the Giants organization, taking over as GM in 2015 when Brian Sabean was promoted to executive vice president of baseball operations. He worked as Sabean's assistant while the Giants won three World Series titles in six seasons between 2010 and 2014.

Under Evans' watch as GM, the Giants posted winning records in both 2015 and '16, and reached the NLDS two years ago. But their 2016 playoff run was followed by a 98-loss season in 2017, which is tied for the second-worst record in team history.

Expectations for 2018 were high after Evans traded for stars Andrew McCutchen and Evan Longoria in the offseason, but the Giants stumbled early and never posed much of a threat in the division.

Despite Evans' dismissal, both Sabean and manager Bruce Bochy are reportedly expected to retain their jobs for the 2019 season, according to Henry Schulman of the San Francisco Chronicle. In a team-issued statement on Monday, Sabean said he will "be working closely with Larry (Baer) as the organization finds its next leader of baseball operations."

Sabean told the Chronicle's John Shea that the team plans to look outside the organization for Evans' replacement.