REF: propseg: removed duplicated code
REF: propseg: removed duplicated code

Former-commit-id: f9a2954bc204bec6551f51774eece5a26e14f941
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox