Move NLocationToSpan() to Utils.