Migrate Statement metric to SyntaxTree