Former MotoGP rider calling it quits at 36.