Removing declarations which are public