Remove unnecessary publics.