remove deprecation call while initializing `ClassCache` object
Merge pull request #15617 from kuldeepaggarwal/remove-deprecate-method

remove deprecation call while initializing `ClassCache` object