Make replaceBit inline