Moved several method from the interval into a new utilities factory.