Modified method for deciding which names to keep in pipeline_data_transformation.