Remove unused AttributeLookupCache.
Remove unused ThreadWeakLocal.
Remove deprecated unittests.