Merge "Refactor getInnerDecisionApply function"