Extract version parsing logic.

- Allow for 'most-recent' auto select of versions using the extracted
  module.