pub(crate) fn clean_visibility(vis: Visibility<DefId>) -> Visibility