Migrate Formatting functions to Util class