migrate: Refactor code into getOptionsVersion