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