Revert "disable deprecated class check"

This reverts commit f194a90ed0c63bc6295ab26d87d7efe2870ba2a2.