INST: fixed code redondancy
INST: fixed code redondancy

Former-commit-id: 359df6f6872c09dcb49cf0fb42a6ba3f0f354136 [formerly 6959c11d5e3d3cbd8437f2102e17204cde3b7e2e]
Former-commit-id: ab41df126e1879178b0019e12dd7748874ae08c1
Former-commit-id: ae681b0f996c86e2e863ac9b74b62b990c64c5f4
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox