Refactored version utility function into it's own module.