Abstracted version to semver converter into its own file. Has test.