Separating out formatting methods into own class for use independent of JsonSerializer.