Removes unused properties