remove the last direct uses of the bit library