Determined to move on from the quarterback they awarded a four-year, $100 million contract to just two seasons ago, the Los Angeles Rams have pulled off a blockbuster deal.

They're sending Jared Goff, two first-round draft picks and a third-round pick to the Detroit Lions in exchange for Matthew Stafford, two people with knowledge of the situation confirmed to USA TODAY Sports on Saturday night, speaking on condition of anonymity because the deal had not been announced publicly.

The Rams are parting with first-round picks in 2022 and 2023 to get Stafford, who had reached an agreement with team brass to work out a trade as Detroit rebuilds under a new head coach, Dan Campbell, and first-year general manger Brad Holmes. Holmes just joined Detroit after 17 years in the Rams' organization.

Los Angeles is forking over eye-popping compensation, but coach Sean McVay and general manager Les Snead had publicly signaled their dissatisfaction with Goff, who has appeared to regress since signing that $134 million contract in September 2019.

The Rams have been aggressive in dealing away draft picks for star players since McVay came aboard in 2017. They have dealt first-round picks for wide receiver Brandin Cooks (no longer with the team), cornerback Jalen Ramsey and now Stafford. Los Angeles hasn't drafted in the first round since 2016 and now isn't scheduled to have a first-round pick until 2024.

Goff, the first overall pick in 2016, was an instrumental figure in the Rams’ run to the Super Bowl in 2018. However, his inconsistent play in the last two seasons frustrated McVay, who runs a quarterback-friendly system.