Refactored use statement generator into resolution context generator.