Refactor default handling into readVersion.