Embed trait in different file formats