Removes unused properties from view