Refactor parsing of IterationSpace.