Restructure codebase.