utils: Move stuff unrelated to box into common directory.