Remove redundunt generic attributes.