I moved it to compute.rb, as it actually depended more on CR and so for re-use in dhcp.rb.