Move internal proto stuff out of the API package.