I think we now have a %(major_version)s in templating that can be used here?