Refactor update_format for cloning format objects