Restructures repo