Migrate Class Metric to SyntaxTree