Could put the version comparison logic into another class, VersionComparator.