Trim metadata fields during style generation