Extracted method serializeExcludedPaymentMethods