Removes undeeded property and methods