DRY'd up build method to include paramertized builds