Refactor unitbuild pipeline.