'Handle various cleanup activities.'

def _handle_housekeeping_tasks(self):

    self.zapi_client.remove_unused_qos_policy_groups()
    active_backend = (self.failed_over_backend_name or self.backend_name)
    LOG.debug('Current    service    state:    Replication    enabled:    %(replication)s.    Failed-Over:    %(failed)s.    Active    Backend    ID:    %(active)s', {'replication': self.replication_enabled, 'failed': self.failed_over, 'active': active_backend})
    if (self.replication_enabled and (not self.failed_over)):
        self.ensure_snapmirrors(self.configuration, self.backend_name, self.ssc_library.get_ssc_flexvol_names())
