Removes unused Foundation dependencies.