We will implement retention policy filtering by version. See the tracking issue here for updates: PG-1278
Hopefully it will be in the official v5.1 release (or soon-after maintenance release) but it may also be there earlier since we are also going to allow pre-release product versions to be downloaded from the Hub installer.