Migrate complexity metric to Syntax Tree