When iterating the formats table, we can just pass the whole entry to our helper function, which avoids iterating the table again to find the entry structure from the passed format id.