Make protocol only depend on netty-buffer