Maybe `unusable_binding`-based filtering should be moved to a separate function taking `NameResolution` and returning `Option<NameBinding>`.  Then this filtering can be done as the very first step of processing the `resolution`.  