Use #[allow(visible_private_types)] when appropriate