class HooksPhaseBuilder {

    public List<HookPhase> buildHookPhases(List<HookPhase> hookPhases, ProcessContext context) {
        return hookPhases.stream()
                         .map(hookPhase -> buildPhase(hookPhase, context))
                         .map(HookPhase::fromString)
                         .collect(Collectors.toList());
    }

    @Inject public  HooksPhaseBuilder(ProcessTypeParser processTypeParser);

}