Move bitfield function out of PeerConnection class
Formatting / comments
Formatting
Inline message that's only used in one place
Pull repeated calculation into val