docs: def to_dict(self):
          """Prepare a minimal dictionary with keys mapping to attributes for
          the current instance.
  
          """
          o_copy = copy.copy(self)
          # Remove some stuff that is not likely related to AD attributes
          for attribute in dir(self):
              if attribute == 'logger' or attribute == 'adq':
                  try:
                      delattr(o_copy, attribute)
                  except AttributeError:
                      pass
  
          return o_copy.__dict__