Remove unnecessary attributes from styles