Remove styles based on spans.