Undid copy-paste code reuse by merging two help functions

 * Merged the trans_has_map_fields and trans_get_map_elements help
   functions into trans_map_query by moving the ICode assignments to
   another list, which is discarded in the has_map_fields case.