I meant to convey that these points are code comments, not code itself, and that the Hook entry points to the _fileToMarkup are the same except for one difference - the $fieldName = ' ... ' differs depending on one calling hook.  I'll try to convey this more clearly.