Remove non-compatible versions, only compatible ones remain.