Remove unneeded properties.