Refactor the Syntax cop to something testable