Remove duplication for class list of shadow element