CRM-14449 api move custom formatting call to utils