The Yankees are in the middle of the youth movement, but they will have a veteran DH in their lineup next year.

Sunday night, the club agreed to terms with veteran outfielder Matt Holliday on a one-year contract. He became a free agent earlier this offseason when the Cardinals declined his $17 million club option.

Source confirms: #Yankees in agreement with Matt Holliday, one year, $13M. @jonheyman first. — Ken Rosenthal (@Ken_Rosenthal) December 4, 2016

The Yankees were said to have interest in reunion with Carlos Beltran, who instead signed a one-year deal with the Astros over the weekend. Holliday is a similar player -- a clutch, veteran hitter who can still produce and be a mentor to the team's young players.

Holliday, 36, hit .246/.322/.461 (107 OPS+) with 20 home runs in 110 games around a thumb injury in 2016. He'll step in as New York's full-time DH, which figures to help him stay healthy and avoid wearing down later in the season.

Matt Holliday has reportedly agreed to a deal with the Yankees. USATSI

The Yankees are going young and figure to have kids at catcher (Gary Sanchez), first base (Greg Bird), and right field (Aaron Judge) next season. Middle infielders Starlin Castro and Didi Gregorius are in their mid-20s as well. Holliday will be the club's elder statesman.

With their DH problem solved, the Yankees figure to focus on pitching at the winter meetings. They've been connected to the top free-agent relievers all offseason.