Refactor EnhanceBestShip.