Refactored format converters to centralize format and contentType check.