Restructure whole build process.