Split BinaryWord into a separate library.