Simplify Project initialization.
Simplify AST building in extract function.
Simplify TokenStream implementation a bit.