Refactoring host build process.