Alexei Ratmansky, 40, “who will leave the Bolshoi at the end of the year, has agreed to spend 20 weeks each season at Ballet Theater for the next five years. He will choreograph at least one new work or retool one of his older dances each year, but will also take on a more general artistic role.”