Clean construction in different file formats