Removes unneeded content.