refactors specifying sub build types