Move parsing of AST to findImport.