The current logic in api-plugin-fulfillment/src/queries/fulfillmentMethodsWithQuotes.js and the called functions in the fulfillment-method plugins (ex. api-plugin-fulfillment-method-pickup-store/src/fulfillmentMethodsWithQuotesPickupStore.js) may need to be refactored to avoid function mutating passed in parameters.
Also, there is a possible bug in case of retrials where the rates entries may get pushed to array again creating duplicates.
Refer: review comment form Brian