Remove dropdown from DOM unless required