Removes unused components.