move more duplicated cde into apply_conf_ban