Minor simplification
Minor simplification

fmt_emailed_export_data is only called once, and not all the arguments are
provided.  Just combine the two functions.  I also noticed that
_fmt_emailed_export_fileData is only called if has_file, so there's no need to
pass in has_file

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq