Clean trait in different file formats