The is_old_pipeline function should be used here.