def METHOD_NAME(self, **options):
    domain = options.pop('domain')
    deactivate_domain = options.pop('deactivate_domain')
    deactivate = options.pop('deactivate')
    if deactivate:
        self.update_domains(
            self._domains_needing_deactivation(),
            'deactivation',
            False
        )
        return
    if deactivate_domain:
        EXPLORE_CASE_DATA_PREVIEW.set(deactivate_domain, False,
                                      NAMESPACE_DOMAIN)
        self.stdout.write('\n\nDomain {} deactivated.\n\n'.format(
            deactivate_domain))
        return
    if domain:
        if domain not in ECD_MIGRATED_DOMAINS.get_enabled_domains():
            self.stdout.write('\n\nDomain {} not migrated yet. '
                              'Activation not possible.\n\n'.format(domain))
            return
        EXPLORE_CASE_DATA_PREVIEW.set(domain, True, NAMESPACE_DOMAIN)
        self.stdout.write('\n\nDomain {} activated.\n\n'.format(domain))
        return
    self.update_domains(
        self._domains_needing_activation(),
        'activation',
        True
    )