The three-time All-Star can become a free agent after next year’s World Series.