s3: Consolidate getting the name out of a pipes_struct