Refactor colossal build method into smaller ones