Refactor the pack header reading function out of receive-pack.c