Refactor: extract a SWConfig for level 2. Prepare to refactor segmentation model.