Move get_format() outside GsxObject