Refactor getInnerDecisionApply function