[Resolver] Remove usage of flat_map because of Ruby 1.8.7