In 1922, the Bolsheviks closed down the Novodevichy Convent  and turned it into the Museum of Women's Emancipation. By 1926, the monastery had been transformed into a history and art museum. In 1934, it became affiliated with the State Historical Museum. Most of its facilities were turned into apartments, which spared the convent from destruction. In 1943, when Stalin started to make advances to the Russian Orthodox Church during World War II, he sanctioned opening the Moscow Theological Courses at the convent. Next year the program was transformed and became the Moscow Theological Institute. In 1945, the Soviets returned Assumption Cathedral to the believers. The residence of the Metropolitan of Krutitsy and Kolomna has been located in the Novodevichy Convent since 1980. In 1994, nuns returned to the convent, which is currently under the authority of the Metropolitan of Krutitsy and Kolomna. Some of the churches and other monastic buildings are still affiliated with the State Historical Museum. In 1995, religious services resumed in the convent on patron saint's days.
Question: Which came first, the monastery being transformed into a history and art museum or becoming affiliated with the State Historical Museum?
Answer: monastery being transformed into a history and art museum