cleanup redundant elements from styles