ENGLEWOOD, Colo. (AP) — The Baltimore Ravens have agreed to trade quarterback Joe Flacco to the Denver Broncos in exchange for a fourth-round pick in this year’s NFL draft, a person with knowledge of the agreement told The Associated Press.

The person spoke to the AP on condition of anonymity Wednesday because neither team announced the deal, which was first reported by ESPN. NFL rules prohibit teams from discussing trades until the start of the league year on March 13.

Flacco, the MVP of the 2013 Super Bowl following a miraculous win at top-seeded Denver, became expendable in Baltimore with the emergence of rookie Lamar Jackson, the former Louisville star who led the Ravens into the playoffs after Flacco got hurt.

The Broncos again need an upgrade at QB after Case Keenum’s middling debut in Denver, where a 6-10 finish led general manager John Elway to turn to Vic Fangio , his fourth head coach in six seasons.

Now, he’s landed his seventh quarterback since Peyton Manning’s tearful retirement following Denver’s win in Super Bowl 50.

The others all bombed: draft picks Brock Osweiler, Trevor Siemian, Paxton Lynch and Chad Kelly, trade acquisition Mark Sanchez and Keenum, who threw for 18 TDs and a career-high 15 interceptions last season to go with a career-high 34 sacks.

Flacco’s contract, which has three years and $63 million remaining, could be reworked in Denver. So could Keenum’s deal, which guarantees him $7 million this season, if the Broncos keep him as a backup, although they could save $11 million by jettisoning him.

Either way, Elway’s deal for Flacco continues his build-but-don’t-rebuild ethos. The Broncos have a solid core of young stars and a still superior defense led by Von Miller and Chris Harris Jr. that Elway believes can keep up with the Chargers and Chiefs in the AFC West with the right quarterback leading the way.

Facilitating his deal for Flacco was the extra fourth-round pick he had at his disposal from the Demaryius Thomas trade to Houston last fall.

In Flacco, the Broncos are turning to a quarterback who broke their hearts six years ago in what’s arguably the lowest point in franchise playoff history.

Denver was the top seed after going 13-3 in Manning’s first season in Denver and the Broncos took an 11-game winning streak into their divisional round playoff game against Baltimore.