Refactoring to use extractSemiContBounds to find the upper and lower bounds of semi-continuous variables