The 21-year-old slugger will take over as the everyday third baseman in San Francisco.