Stanford coach David Shaw is now charged with replacing offensive coordinator Pep Hamilton.

The Indianapolis Star confirmed that Hamilton is the Colts’ new offensive coordinator, reuniting with former Stanford quarterback Andrew Luck.

Hamilton worked with Luck for two years at Stanford, helping to groom one of the best quarterbacks to ever play on the collegiate level. Hamilton is replacing Bruce Arians, the Colts’ interim coach who was named the Arizona Cardinals head coach.

“We knew this day was coming at some point for Pep,” Shaw told the Star Friday night. “I’m excited No. 1 for him and his family to be in such a great situation. I’m also excited for the Colts family.

“You’re getting a guy first and foremost who knows how to train quarterbacks. You’re getting a guy who knows how to attack defenses and you’re getting a guy who is passionate about the game of the football.”

He’s also the guy who brought along Kevin Hogan well enough that late in the season, Hogan was able to take over and start the final five games for Stanford. Included in those starts was a game on the road against Oregon where Stanford pulled off one of the biggest upsets of the season.

The Cardinal averaged 374.43 yards per game, using a balanced attack with bruising running back Stepfan Taylor and Hogan.

Two potential replacements for Hamilton are on the current staff, the San Jose Mercury News reports. Offensive line/run game coordinator Mike Bloomgreen and running backs coach Mike Sanford are possibilities.

And in Indianapolis, Hamilton and Luck are eager to begin working together again.

“He is (excited),” Shaw said of Luck. “He and Pep have a good relationship. They know each other so well that there’s no going to be that feeling-out period. They’re both going to want to hit the ground running when the offseason begins and just get back after it.”

That will only help Luck, who set NFL rookie records with 4,374 yards and 627 pass attempts. However, he completed only 54.1 percent of his passes, was sacked 41 times and threw 18 interceptions.