class HooksCalculator {

    public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) {
        List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase);
        return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution);
    }

}