Improved comparable generation for existing packages