Restructures packages.