Added deprecation to class file.

Was halting the CI build.