Removes redundant attributes