Add _normalizeUnits function. [1303]