Manually define Binary instance and drop derive dependency