Remove irrelevant attributes