code: def to_svc_hst_distinct_lists(ref, tab):  # pragma: no cover, to be deprecated?
      
      res = {'hosts': [], 'services': []}
      for elem in tab:
          cls = elem.__class__
          name = elem.get_full_name()
          if cls.my_type == 'service':
              res['services'].append(name)
          else:
              res['hosts'].append(name)
      return res
docs: create a dict with 2 lists::
  
      * services: all services of the tab
      * hosts: all hosts of the tab
  
      :param ref: Not used
      :type ref:
      :param tab: list of Host and Service
      :type tab: list
      :return: dict with hosts and services names
      :rtype: dict