Fix quality flaws
Migrate Lines Metric to SyntaxTree