Dani Pedrosa will leave the Repsol Honda Team at the end of the season as his Grand Prix racing career comes to an end, but the three-time World Champion will join the Red Bull KTM Factory Racing team in a test role after he’s completed his final race on board a Honda in Valencia.