Drop unnecessary attributes