Refactor build config.