reduce complexity of get_plan_id by moving decoding of the user-supplied label to its own function
reduce complexity of get_plan_id by moving decoding of the user-supplied label to its own function

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt