Move cuboid generator to another file.