It would be better to extract this functionality into its own `ScalaVersion` class. The logic involved gets more involved.