Migrate Deprecation checks to SyntaxTree