Remove unnecessary values.