Simplify numApprovals code.