Split out confusing path combination logic to separate method (#21247)
Split out confusing path combination logic to separate method (#21247)

* Split out confusing path combination logic to separate method

* Fix argument type
nathanielvarona/airflow,lyft/incubator-airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,bolkedebruin/airflow,apache/airflow,bolkedebruin/airflow,cfei18/incubator-airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,cfei18/incubator-airflow,nathanielvarona/airflow,bolkedebruin/airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,nathanielvarona/airflow,lyft/incubator-airflow,lyft/incubator-airflow,Acehaidrey/incubator-airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,nathanielvarona/airflow,cfei18/incubator-airflow,apache/airflow,apache/airflow,cfei18/incubator-airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,danielvdende/incubator-airflow,cfei18/incubator-airflow,danielvdende/incubator-airflow,danielvdende/incubator-airflow,lyft/incubator-airflow,apache/airflow,apache/airflow,Acehaidrey/incubator-airflow,apache/airflow,cfei18/incubator-airflow