Remove unnecessary attributes/user input keys.