Use DI for resolution context parser.