box: Move box type definitions into another file.