Removes unnecessary foundation components.