Extracted duplicate int/string to mxversion conversion