Refactored CreateAdapter method in DefaultTripAdapterFactory class