function remove_taxonomy_hierarchy_message()
{
    global $wpml_admin_notices;
    if (!$wpml_admin_notices) {
        $wpml_notice_render = new WPML_Notice_Render();
        $wpml_admin_notices = new WPML_Notices($wpml_notice_render);
        $wpml_admin_notices->init_hooks();
    }
    $wpml_admin_notices->remove_notice('wpml-core', 'wpml-taxonomy-hierarchy-sync');
}
 public function remove_notice($id)
 {
     $this->admin_notices->remove_notice($this->settings->get_notices_group(), $id);
 }