Document:

EX-10.17

 Exhibit 10.17 

AMENDED AND RESTATED 

REPRESENTATION AND SERVICES AGREEMENT FOR OIL SPILL 

CONTINGENCY PLANNING, RESPONSE AND REMEDIATION 

This Amended and Restated Representation and Services Agreement for Oil Spill Contingency Planning, Response and Remediation (this
“Agreement”) is dated this 6th day of December, 2013, by and among Tesoro Companies, Inc. (“TCI”), a Delaware corporation, Tesoro Maritime Company
(“TMC”), a Delaware corporation, Tesoro Refining & Marketing Company LLC (“TRMC”), a Delaware limited liability company, Tesoro Alaska Company (“TAC”), a Delaware
corporation, Kenai Pipeline Company (“KPL”), a Delaware corporation, Tesoro Alaska Pipeline Company (“TAPL”), a Delaware corporation, Carson Cogeneration Company (“CCC”), a
Delaware corporation, Tesoro Logistics Operations LLC (“TLO”), a Delaware limited liability company, Tesoro High Plains Pipeline Company LLC (“THPP”), a Delaware limited liability company, Tesoro
Logistics Pipelines LLC (“TLP”), and Tesoro Logistics Northwest Pipeline LLC (“TLNP”), a Delaware limited liability company, each of whom is a “Party” and
collectively are the “Parties” to this Agreement; TCI, TRMC, TMC, TAC, KPL, TAPL and CCC are each individually, a “Tesoro Party” and collectively, the “Tesoro Parties,” and TLO,
TLP, TLNP and THPP are each individually, a “TLLP Party” and collectively, the “TLLP Parties”. 

RECITALS: 
 A. WHEREAS, all
of the Parties, except for CCC, are parties to that certain Representation and Services Agreement for Oil Spill Contingency Planning, Response and Remediation dated as of February 21, 2013 (the “Existing Agreement”);

 B. WHEREAS, the Parties desire to amend and restate the Existing Agreement to add CCC as a party and to clarify certain issues regarding the
obligations of the Parties thereto; 
 C. WHEREAS, the Parties are all affiliated entities, with TCI, TRMC, TMC, TAC and TAPL being wholly owned
subsidiaries of Tesoro Corporation; KPL being a wholly owned subsidiary of TAC; CCC being a wholly owned subsidiary of TRMC; and TLO being a wholly owned subsidiary of Tesoro Logistics LP (“TLLP”), in which a majority of the
partnership interests are owned by Tesoro Corporation and its subsidiaries, and which is solely managed by Tesoro Logistics GP, LLC, a wholly owned subsidiary of Tesoro Corporation (“TLGP”); and with TLP being a wholly owned
subsidiary of TLO and both THPP and TLNP being wholly owned subsidiaries of TLP; 

 D. WHEREAS, in six transactions, respectively effective April 26, 2011, April 1,
2012, September 14, 2012, November 15, 2012, June 1, 2013 and the date hereof, TLO received contributions of certain logistics assets from TAC and TRMC, which included multiple wharfs, pipelines, terminals, storage
tanks and ancillary facilities located in the States of Alaska, California, Idaho, North Dakota, Utah and Washington; 
 E. WHEREAS, TLO has rights
of first offer to acquire certain other logistics assets from TRMC and TAC, and the Parties may agree to assign future logistics assets to TLO in the future, which will become part of the TLLP Facilities subject to this Agreement when they are
assigned to TLO by any of the Tesoro Parties; 
 F. WHEREAS, the TLLP Parties have acquired and/or may acquire in the future other logistics
facilities that will provide services to the Tesoro Parties, and for which the Parties will agree that the Tesoro Parties should provide oil spill contingency planning and response services, and upon such acquisition and agreement, such logistics
facilities will become part of the TLLP Facilities subject to this Agreement; 
 G. WHEREAS, the TLLP Parties have entered into operating agreements
(collectively, “Operating Agreements”; and each individually, an “Operating Agreement”) with the Tesoro Parties, under which TLLP provides services to the Tesoro Parties as the operator of certain
logistics assets, including wharfs, pipelines, terminals, storage tanks and ancillary facilities in the State of California; 
 H. WHEREAS, the TLLP
Parties may in the future enter into other Operating Agreements under which TLLP will provide services to the Tesoro Parties as the operator of certain logistics assets, including wharfs, pipelines, terminals, storage tanks and ancillary facilities;

 I. WHEREAS, TRMC and TAC are currently the largest customers using the logistics facilities that have been transferred to TLLP, or for which TLLP
provides operating services under various services agreements with TLO and tariffs are published by THPP, and have contracted with TLO to utilize the majority of the capacity of the TLLP Facilities; 

 J. WHEREAS, the Parties intend that the logistics facilities that have either (i) been assigned,
leased or subleased from a Tesoro Party to a TLLP Party or (ii) for which a TLLP Party provides operating services for a TLO Party, are each individually, a
 “TLLP Facility” and collectively, the “TLLP
Facilities”, 
 K. WHEREAS, the Tesoro Parties employ personnel who have training and experience in Oil Spill Contingency Planning and
Response, and who provide such services in connection with the Tesoro Parties’ assets; 
 L. WHEREAS, the TLLP Parties wish to have personnel
and contractors of the Tesoro Parties continue to provide services relating to Oil Spill Contingency Planning and Response for the TLLP Facilities; 
 M.
WHEREAS, some of the Tesoro Parties and the TLLP Parties are parties to an Amended and Restated Operational Services Agreement dated April 1, 2012 (“Operational Services Agreement”) and a Second Amended and Restated
Omnibus Agreement dated November 15, 2012 (“Omnibus Agreement”), including schedules related thereto, pursuant to which the Tesoro Parties provide certain services to the TLLP Parties, and have indemnified or will
indemnify the TLLP Parties for certain liabilities; 
 N. WHEREAS, TMC charters vessels that use TLLP Facilities as well as facilities of the Tesoro
Parties, and deliver and receive crude oil and refined products from such onshore facilities; 
 O. WHEREAS, TCI is a member of the Marine
Preservation Association (“MPA”) and has contracted with the Marine Spill Response Corporation (“MSRC”), to provide oil spill response and contingency planning for property owned and
operated by TRMC, TAC, KPL, TAPL, CCC, THPP, TLNP and TLO and for vessels charted by TMC; 
 P. WHEREAS, TCI has deemed TRMC, TMC, TAC, KPL, TAPL,
CCC, THPP, TLNP and TLO to be covered entities under TCI’s MPA membership, such that TCI acts as a representative of each of these affiliated Parties in connection with its membership rights and responsibilities regarding MPA’s operations
and cost structure; 

 Q. WHEREAS, TMC is a member in Cook Inlet Spill Response, Inc. (“CISPRI”), which
provides oil spill response and contingency planning for the Anchorage Terminals included within the TLLP Facilities, as well as other facilities owned and operated by TAC, KPL and TAPL in Alaska; 

R. WHEREAS, some of the Parties are also parties to a certain Marine Services Representation Agreement dated May, 2011, covering joint representation
in CISPRI, and this Agreement shall supplement, but not supersede or replace that Marine Services Representation Agreement; and 
 S. WHEREAS, some
of the Tesoro Parties are also parties to intercompany service agreements covering services provided by TCI to other Tesoro Parties, and this Agreement shall supplement but not supersede or replace those agreements. 

NOW THEREFORE, in consideration of the foregoing, the receipt and sufficiency of which are hereby acknowledged by the Parties, and for
purposes of documenting and memorializing the Parties’ mutual understandings regarding (a) TCI serving as the representative of all Parties through its membership in MPA, and (b) the allocation among the Parties of costs and expenses
associated with oil spill contingency planning, response and remediation activities, the Parties do hereby covenant and agree as follows: 
 1. TCI
Representation in MPA. TCI will act as the sole representative for all the Parties as a member in MPA, and TCI shall perform the duties and responsibilities of a member in MPA on behalf of all the Parties. TCI shall use reasonable commercial
efforts to perform such duties and responsibilities in accordance with the same standards that it uses for its own business. 
 2. MPA Operating
Costs. MPA may allocate to TCI, as a MPA member, a share of MPA’s ongoing operating, maintenance, planning and contingency preparedness costs, expenses and capital contributions related to MPA’s normal operations (“MPA
Operating Costs”) not arising from response, remediation, containment or cleanup of actual spills, releases, accidents or similar incidents. MPA Operating Costs shall include, without limitation, costs associated with contingency
planning and preparedness and drills for potential spills, releases, accidents or similar incidents. TLO shall reimburse TCI for all MPA Operating Costs allocated to TCI by MPA with respect to the TLLP Facilities, and such MPA Operating Costs shall
not be further allocated among the Parties. 

 3. Engagement of MSRC. One or more of the Tesoro Parties may engage MSRC to perform services relating to
ongoing operating, maintenance, planning and contingency preparedness, including services relating to the TLLP Facilities. The Tesoro Parties are authorized to so engage MSRC in the ordinary course of business to perform such services for the TLLP
Facilities, under terms and conditions and at rates and fees consistent with those provided for facilities of the Tesoro Parties and in accordance with customary industry terms for similarly situated facilities of third parties. Costs and overhead
fees charged to the Parties by MSRC associated with routine services provided by MSRC (“MSRC Service Fees”) for the TLLP Facilities and not related to Incidents, shall be included within the fees specified in the Omnibus
Agreement and the Operational Services Agreement and shall not be otherwise charged to the TLLP Parties. 
 4. Response Costs. “Incident
Response Costs” shall include MSRC/MPA Response Costs, Tesoro Response Costs, and TLLP Response Costs, as set forth below: 

(a) MPA and/or MSRC may allocate to TCI or charge TCI for costs (“MSRC/MPA Response Costs”) incurred by MSRC and/or MPA
related to response, remediation, containment or cleanup of any actual spills, releases, accidents or similar incidents (each individually an “Incident”, and collectively “Incidents”) associated with
facilities or operations of the Parties or third parties, which are not included within the MPA Operating Costs or MSRC Service Fees. 
 (b)
The Tesoro Parties may also incur other costs (“Tesoro Response Costs”) related to response, remediation, containment or cleanup of any Incidents associated with the TLLP Facilities, which are not included within the MSRC/MPA
Response Costs, the MPA Operating Costs or the MSRC Service Fees. Tesoro Response Costs may include, without limitation, (i) costs of time and expenses of personnel of the Tesoro Parties, (ii) fees and costs for use of materials and
equipment provided by the Tesoro Parties, (iii) fees and costs for services, materials equipment, vessels and vehicles provided by third parties and charged to the Tesoro Parties, (iv) fees and costs charged to the Tesoro Parties by
governmental agencies with respect to remediation, containment or cleanup of any Incidents and (v) fees and costs incurred by third parties with respect to remediation, containment or cleanup of any Incidents for which a Tesoro Party is legally
responsible for providing indemnity or contribution to such third party by reason of the Tesoro Party being an owner of a TLLP Facility operated by a TLLP Party. 

 (c) The TLLP Parties may also incur other costs (“TLLP Response Costs”)
related to response, remediation, containment or cleanup of any Incidents associated with facilities or operations of the Tesoro Parties, which are not included within the MSRC/MPA Response Costs, the MPA Operating Costs or the MSRC Service Fees.
TLLP Response Costs may include, without limitation, (i) costs of time and expenses of personnel of the TLLP Parties, (ii) fees and costs for use of materials and equipment provided by the TLLP Parties, (iii) fees and costs for
services, materials equipment, vessels and vehicles provided by third parties and charged to the TLPP Parties, (iv) fees and costs charged to the TLLP Parties by governmental agencies with respect to remediation, containment or cleanup of any
Incidents, and (v) fees and costs incurred by third parties with respect to remediation, containment or cleanup of any Incidents for which a TLLP Party is legally responsible for providing indemnity or contribution to such third party by reason
of the TLLP Party being an owner, operator, lessee or sublessee of a TLLP Facility. 
 (d) In the event that there is an Incident involving a
TLLP Facility, which results in MSRC and/or MPA incurring MSRC/MPA Response Costs that are charged to TCI as a member of MPA or otherwise charged to TCI or another Tesoro Party as a responsible party under environmental laws, regulations, and
permits, or as an owner or lessee of a TLLP Facility operated or subleased by a TLLP Party, then the TLLP Party operating or subleasing the TLLP Facility for which such costs are incurred shall reimburse and indemnify the affected Tesoro Parties for
the MSRC/MPA Response Costs associated with such TLLP Facility; provided however, that such TLLP Party shall not be responsible for reimbursing or indemnifying a Tesoro Party for any Incident Response Costs to the extent that the Incident was
attributable to the negligent or wrongful actions or omissions of such Tesoro Party for which the TLLP Party would have a right of recovery against such Tesoro Party under law, regulation, equity or contract. 

 (e) In the event that there is an Incident involving a TLLP Facility, which results in one or
more of the Tesoro Parties incurring Tesoro Response Costs, then the TLLP Party operating, leasing or subleasing the TLLP Facility for which such costs are incurred shall reimburse and indemnify the Tesoro Parties for the Tesoro Response Costs
associated with such Incident; provided however, that such TLLP Party shall not be responsible for reimbursing or indemnifying the Tesoro Parties for any Tesoro Response Costs to the extent that the Incident was attributable to the to the negligent
or wrongful actions or omission of such Tesoro Party for which the TLLP Party would have a right of recovery against such Tesoro Party under law, regulation, equity or contract. 

(f) In the event that there is an Incident involving a facility owned or leased (but not leased or subleased to a TLLP Party) or operated by
one of the Tesoro Parties, which results in one or more of the TLLP Parties incurring TLLP Response Costs, then the Tesoro Party owning, leasing, or operating (but not leasing or subleasing to a TLLP Party) the facility for which such costs are
incurred shall reimburse and indemnify the TLLP Parties for the TLLP Response Costs associated with such Incident; provided however, that such Tesoro Party shall not be responsible for reimbursing or indemnifying the TLLP Parties for any TLLP
Response Costs to the extent that the Incident was attributable to the to the negligent or wrongful actions or omissions of such TLLP Party for which the Tesoro Party would have a right of recovery against such TLLP Party under law, regulation,
equity or contract. 
 (g) In the event that the Incident Response Costs relating to Incidents that are associated with both a facility
operated, leased or subleased by a TLLP Party or a Tesoro Party and a vessel chartered by TMC, then the Parties shall negotiate a fair and equitable allocation of costs among TCI, TMC and the Party operating, leasing or subleasing such facility,
based upon the nature of the costs and the Incidents that resulted in the Incident Response Costs and the respective culpability of the Parties with regard to such Incident. TMC shall be responsible for reimbursing the appropriate Parties for such
Incident Response costs to the extent that law, regulation, equity or contract would impose such liability upon TMC as a charterer of the vessel. If the Incident involves a TLLP Facility, the TLLP Parties shall be subrogated to the rights of TMC to
recover from the vessel or its insurers the Incident Response Costs incurred by TLLP, either directly or by reason of a reimbursement of the Tesoro Parties pursuant to this Agreement. 

 (h) In the event that TCI is charged for MSRC/MPA Response Costs relating to Incidents associated
with facilities or operations of third parties that are unrelated to any facilities or operations of any of the Parties or vessels chartered or otherwise utilized by TCI, then the Parties shall negotiate a fair and equitable allocation of costs
among themselves, based upon the nature of the costs and the Incident that resulted in the MSRC/MPA Response Costs and the respective relationships of the Parties with regard to such Incident. 

(i) In no event shall any allocation of Incident Response Costs be made or required hereunder that would cause the Incident to be regarded as
more than one occurrence with respect to all of the Parties’ collective insurance coverages or that would expose the Parties to multiple insurance deductibles or self-insured retentions or otherwise limit or exclude insurance coverage with
respect to such Incident, nor shall any provision of this agreement or any condition of TCI’s representation of the Parties as a member in MPA be construed to provide such a result. If any Party recovers any MSRC/MPA Response Costs from the
owner, operator, charterer or insurer of a vessel or any other third party or any insurer, then such recovery shall be credited against and reduce and/or provide reimbursement for any Incident Response Costs that otherwise might be owed or have been
paid by the other Parties hereto. 
 (j) This Agreement does not supersede or control over any allocation of Incident Response Costs that may
be set forth in specific Operating Agreements, use and throughput agreements or other service agreements between the TLLP Parties and the Tesoro Parties regarding operation and use of the TLLP Facilities. The provisions of these agreements shall be
harmonized with the provisions of this Agreement to the maximum extent possible. In the event of any conflict between the various terms, the provisions of the applicable Operating Agreement, use and throughput agreement or service agreement shall
control over the terms of this Agreement. 
 5. Additions to TLLP Facilities. The Parties anticipate that in the future, TLLP will acquire, lease or
sublease additional logistics facilities from Tesoro Parties or from third parties, and that the Parties may agree that the Tesoro Parties should provide oil spill contingency planning and response services for those additional facilities. Upon such
acquisition and agreement, each such facility will automatically become a TLLP Facility, subject to this Agreement. 

 6. Term and Termination. This Agreement shall continue until December 31, 2013 and shall renew for
successive periods of one year thereafter, unless terminated by any Party upon sixty (60) days advance written notice. The Parties shall periodically evaluate whether the allocation of MPA Operating Costs set forth herein and the agreement not
to include such MPA Operating Costs or MSRC Service Fees as components of tariffs and fees remains appropriate under conditions as they may exist from time to time. At any time after December 31, 2013, any Party may request renegotiation of all
or any part of this Agreement, and the Parties shall then negotiate in good faith to make reasonable arrangements regarding future allocations of MPA Operating Costs, MSRC Service Fees and related adjustments of tariff and fee structures. In the
event the Parties are unable to reach a consensus on any appropriate adjustments, then any Party may terminate this Agreement upon ten (10) days advance written notice as to subsequent costs incurred by TCI, but such termination shall not
invalidate this Agreement as to costs incurred by TCI prior to the effective date of such termination. Upon termination of this Agreement, TCI may rescind its designation of the other Parties as covered entities with respect to TCI’s membership
in MPA. 
 7. Parent Guaranties and COFRs. For TLLP Facilities that are operated, leased or subleased by a TLLP Party, but are owned or leased by a
Tesoro Party, then the Tesoro Party or its parent, Tesoro Corporation may be required to post or provide a parent guaranty or a Certificate of Financial Responsibility (“COFR”) to demonstrate adequate financial ability to pay
for any Incident Response Costs that might be associated with Incidents at such TLLP Facility. The TLLP Party operating, leasing or subleasing the TLLP Facility shall release, defend, indemnify and hold harmless the Tesoro Party owning or leasing
such TLLP Facility from and against any such Incident Response Costs as provided herein and any other damages, losses, expenses or fees which the Tesoro Party may incur under the Tesoro Party’s parent guaranty or COFR resulting from the TLLP
Party’s operation leasing or subleasing of the TLLP Facility prior to acceptance by the California Department of Fish and Game of TLO’s COFR. Tesoro Corporation shall be (i) subrogated to the rights of such Tesoro Party to receive
such reimbursement to the extent that Tesoro Corporation is obligated to pay or guarantee payment of such Incident Response Costs pursuant to any such parent guaranty or COFR, and (ii) entitled to receive reimbursement from TLLP for any
incremental costs or expenses incurred by it or a Tesoro Party in connection with the posting of a COFR for a TLLP Facility. In the event of a conflict of provisions of this Agreement and the provisions of the Carson Asset Indemnity Agreement dated
as of the date hereof, by and among TLGP, TLLP, TLO, Tesoro Corporation, and TRMC, the provisions of the Carson Asset Indemnity Agreement shall prevail with respect to issues related to the contribution of the assets described therein, but
not with respect to the ordinary operations of such assets. 

 8. Miscellaneous. 

(a) Assignment. This Agreement shall be binding upon the Parties and their respective successors and assigns, provided however,
that no Party may assign its interests under this Agreement without the consent of all the Parties hereto. 
 (b) Modification;
Waiver. This Agreement may be terminated, amended or modified only by a written instrument executed by the Parties. Any of the terms and conditions of this Agreement may be waived in writing at any time by the Party entitled to the benefits
thereof. No waiver of any of the terms and conditions of this Agreement, or any breach thereof, will be effective unless in writing signed by a duly authorized individual on behalf of the Party against which the waiver is sought to be enforced. No
waiver of any term or condition or of any breach of this Agreement will be deemed or will constitute a waiver of any other term or condition or of any later breach (whether or not similar), nor will such waiver constitute a continuing waiver unless
otherwise expressly provided. 
 (c) Governing Law; Jurisdiction. This Agreement shall be governed by the laws of the State of
Texas without giving effect to its conflict of laws principles. Each Party hereby irrevocably submits to the exclusive jurisdiction of any state or federal district court of competent jurisdiction in Bexar County, Texas. The Parties expressly and
irrevocably submit to the jurisdiction of said courts and irrevocably waive any objection which they may now or hereafter have to the laying of venue of any action, suit or proceeding arising out of or relating to this Agreement brought in such
courts, irrevocably waive any claim that any such action, suit or proceeding brought in any such court has been brought in an inconvenient forum and further irrevocably waive the right to object, with respect to such claim, action, suit or
proceeding brought in any such court, that such court does not have jurisdiction over such Party. The Parties hereby irrevocably consent to the service of process by registered mail, postage prepaid, or by personal service within or without the
State of Texas. Nothing contained herein shall affect the right to serve process in any manner permitted by law. 

 (d) WAIVER OF JURY TRIAL. EACH PARTY WAIVES, TO THE FULLEST EXTENT PERMITTED BY
APPLICABLE LAW, ANY RIGHT IT MAY HAVE TO A TRIAL BY JURY IN RESPECT OF ANY PROCEEDINGS RELATING TO THIS AGREEMENT OR ANY PERFORMANCE OR FAILURE TO PERFORM OF ANY OBLIGATION HEREUNDER. 

(e) No Third Party Beneficiaries. It is expressly understood that the provisions of this Agreement do not impart enforceable
rights in anyone who is not a Party or successor or permitted assignee of a Party; provided however, that Tesoro Corporation shall be a third party beneficiary of all indemnities and reimbursement rights provided to the Tesoro Parties hereunder as
provided in Section 7 above. No insurer or third party other than Tesoro Corporation or TLLP shall be entitled to assert subrogation, indemnity or contribution rights against any Party with respect to any Incident or as a result of the
provisions of this Agreement or TCI acting as the representative of the other Parties as a member in MPA or a party to agreements with MSRC. 

(f) Severability. Whenever possible, each provision of this Agreement will be interpreted in such manner as to be valid and
effective under applicable law, but if any provision of this Agreement or the application of any such provision to any person or circumstance will be held invalid, illegal or unenforceable in any respect by a court of competent jurisdiction, such
invalidity, illegality or unenforceability will not affect any other provision hereof, and the Parties will negotiate in good faith with a view to substitute for such provision a suitable and equitable solution in order to carry out, so far as may
be valid and enforceable, the intent and purpose of such invalid, illegal or unenforceable provision. 
 (g) Counterparts.
This Agreement may be executed in one or more counterparts for the convenience of the Parties hereto, each of which counterparts will be deemed an original, but all of which counterparts together will constitute one and the same agreement. 

  
 [Signature Page Follows]

 IN WITNESS WHEREOF, the Parties hereto have duly executed this Agreement as of the date
first written 

 

			
	TESORO PARTIES:
	
	TESORO COMPANIES, INC
		
	By:	 	 /s/ Gregory J. Goff

	Name:	 	Gregory J. Goff
	Title:	 	 Chairman of the Board of Directors
 and
President

	
	TESORO MARITIME COMPANY
		
	By:	 	 /s/ G. Scott Spendlove

	Name:	 	G. Scott Spendlove
	Title:	 	 Senior Vice President and Chief
 Financial
Officer

	
	TESORO REFINING & MARKETING COMPANY LLC
		
	By:	 	 /s/ Gregory J. Goff

	Name:	 	Gregory J. Goff
	Title:	 	 Chairman of the Board of Managers
 and
President

	
	TESORO ALASKA COMPANY
		
	By:	 	 /s/ Gregory J. Goff

	Name:	 	Gregory J. Goff
	Title:	 	 Chairman of the Board of Directors
 and
President

 

			
	TESORO ALASKA PIPELINE COMPANY
		
	By:	 	 /s/ G. Scott Spendlove

	Name:	 	G. Scott Spendlove
	Title:	 	 Senior Vice President and Chief
 Financial
Officer

	
	KENAI PIPELINE COMPANY
		
	By:	 	 /s/ G. Scott Spendlove

	Name:	 	G. Scott Spendlove
	Title:	 	 Senior Vice President and Chief
 Financial
Officer

	
	CARSON COGENERATION COMPANY
		
	By: 	 	 /s/ Gregory J. Goff

	Name:	 	Gregory J. Goff
	Title:	 	 Chairman of the Board of
 Directors and
President

 
 

  
 Signature Page to
Amended and Restated Representation and Services Agreement 

 
			
	TLLP PARTIES:
	
	TESORO LOGISTICS OPERATIONS LLC
		
	By:	 	 /s/ Phillip M. Anderson

	Name:	 	Phillip M. Anderson
	Title:	 	President
	
	TESORO LOGISTICS PIPELINES LLC
		
	By:	 	 /s/ Phillip M. Anderson

	Name:	 	Phillip M. Anderson
	Title:	 	President
	
	TESORO LOGISTICS NORTHWEST PIPELINE LLC
		
	By:	 	 /s/ Phillip M. Anderson

	Name:	 	Phillip M. Anderson
	Title:	 	President
	
	TESORO HIGH PLAINS PIPELINE COMPANY LLC
		
	By:	 	 /s/ Phillip M. Anderson

	Name:	 	Phillip M. Anderson
	Title:	 	President

  
 Signature Page to
Amended and Restated Representation and Services AgreementEX-10.12

 Exhibit 10.12 

FORM OF 
 RESTRICTED
STOCK UNIT AGREEMENT 
 MODEL N, INC. 

2013 EQUITY INCENTIVE PLAN 
 You have been
granted Restricted Stock Units (“RSUs”) subject to the terms, restrictions and conditions of the Plan, the Notice of Restricted Stock Unit Award (the “Notice”) and this Agreement. 

1. Settlement. Settlement of RSUs shall be made within 30 days following the applicable date of vesting under the vesting schedule set
forth in the Notice. Settlement of RSUs shall be in Shares. Settlement means the delivery of the Shares vested under an RSU. No fractional RSUs or rights for fractional Shares shall be created pursuant to this Agreement. 

2. No Stockholder Rights. Unless and until such time as Shares are issued in settlement of vested RSUs, you shall have no ownership of the
Shares allocated to the RSUs and shall have no right dividends or to vote such Shares. 
 3. Dividend Equivalents. Dividends, if any (whether
in cash or Shares), shall not be credited to you. 
 4. No Transfer. RSUs may not be sold, assigned, transferred, pledged, hypothecated, or
otherwise disposed of in any manner other than by will or by the laws of descent or distribution or court order or unless otherwise permitted by the Committee on a case-by-case basis. 

5. Termination. If your Service terminates for any reason, all unvested RSUs shall be forfeited to the Company forthwith, and all rights you
have to such RSUs shall immediately terminate. In case of any dispute as to whether your termination of Service has occurred, the Committee shall have sole discretion to determine whether such termination has occurred and the effective date of such
termination. 
 6. Tax Consequences. You acknowledge that there will be tax consequences upon settlement of the RSUs or disposition of the
Shares, if any, received in connection therewith, and you should consult a tax adviser regarding your tax obligations prior to such settlement or disposition in the jurisdiction where you are subject to tax. 

7. Withholding Taxes and Stock Withholding. Regardless of any action the Company or the Subsidiary or affiliate that is your actual employer
(the “Employer”) takes with respect to any or all income tax, social insurance, payroll tax, payment on account or other tax-related withholding (“Tax-Related Items”), you acknowledge that the ultimate
liability for all Tax-Related Items legally due by you is and remains your responsibility and that the Company and/or the Employer (1) make no representations or undertakings regarding the treatment of any Tax-Related Items in connection with
any aspect of the award, including the settlement of the RSUs, the subsequent sale of Shares acquired pursuant to such settlement and the receipt of any dividends; and (2) do not commit to structure the terms of the award or any aspect of the
RSUs to reduce or eliminate your liability for Tax-Related Items. You acknowledge that if you are subject to Tax-Related Items in more than one jurisdiction, the Company and/or the Employer may be required to withhold or account for Tax-Related
Items in more than one jurisdiction. 
 Prior to the settlement of your RSUs, you shall pay or make adequate arrangements satisfactory to the Company and/or
the Employer to satisfy all withholding and payment on account obligations of the Company and/or the Employer. In this regard, you authorize the Company and/or the Employer to withhold all applicable Tax-Related Items legally payable by you. With
the Company’s consent, these arrangements may include, if permissible under local law, (a) having the Company withhold taxes from the proceeds of the sale of the Shares, through a voluntary sale or through a mandatory sale arranged by the
Company (on your behalf and you hereby authorize such sales by this authorization) or (b) any other arrangement approved by the Company; all under such rules as may be established by the Committee and in compliance with the Company’s
Insider Trading Policy and 10b5-1 Trading Plan Policy, if applicable; provided however, that if you are a Section 16 officer of the Company under the Exchange Act, then the method of withholding shall be through a mandatory sale under
(a) above. You shall pay to the Company or the Employer any amount of Tax-Related Items that the Company or the Employer may be required to withhold as a result of your participation in the Plan or your purchase of Shares that cannot be
satisfied by the means previously described. Finally, you acknowledge that the Company has no obligation to deliver Shares to you 

 
until you have satisfied the obligations in connection with the Tax-Related Items as described in this Section. In this regard, you authorize the Company to instruct the broker whom it has
selected for this purpose to sell a number of Shares to be issued upon the vesting of your RSUs to meet the withholding obligation for Tax-Related Items. Such sales shall be effected at the prevailing market price on the 1st or 2nd Trading Day following the date that the RSUs vest. 

You acknowledge that the proceeds of any such sale may not be sufficient to satisfy your withholding obligation for Tax-Related Items. To the extent the
proceeds from such sale are insufficient to cover the Tax-Related Items, the Company may in its discretion (a) withhold the balance of all applicable Tax-Related Items legally payable by you from your wages or other cash compensation paid to
you by the Company and/or (b) withhold in Shares, provided that the Company only withholds an amount of shares not in excess of the amount necessary to satisfy the minimum withholding amount. If the Company satisfies the obligation for
Tax-Related Items by withholding a number of Shares as described above, you are deemed to have been issued the full number of shares subject to the award of RSUs, notwithstanding that a number of the shares is held back solely for the purpose of
paying the Tax-Related Items due as a result of the vesting of the RSUs. 
 8. 10b5-1 Plan. You acknowledge that the instruction to the broker
to sell in the foregoing section is intended to comply with the requirements of Rule 10b5-1(c)(1)(i)(B) under the Exchange Act and to be interpreted to comply with the requirements of Rule 10b5-1(c)(1) under the Exchange Act (a “10b5-1
Plan”). You acknowledge that you are not aware of any material, nonpublic information with respect to the Company or any securities of the Company as of the date of this Agreement, or that as of the date any sales are effected pursuant to the
10b5-1 Plan you will not effect such sales on the basis of material nonpublic information about the securities or the Company of which you were aware at the time you entered into this Agreement. This 10b5-1 Plan is adopted so that the initial sales
under the 10b5-1 Plan will occur on the first date on which the RSUs vest. This 10b5-1 Plan is being adopted to permit you to sell a number of shares awarded upon the vesting of RSUs sufficient to pay withholding taxes that become due as a result of
this award or the vesting of the RSUs. You hereby authorize the broker to sell the number of Shares determined as set forth above and acknowledge that the broker is under no obligation to arrange for such sale at any particular price. You hereby
appoint the Company as your agent and attorney-in-fact to instruct the broker with respect to the number of shares to be sold under this 10b5-1 Plan. You acknowledge that you will be responsible for all brokerage fees and other costs of sale, and
you agree to indemnify and hold the Company harmless from any losses, costs, damages, or expenses relating to any such sale. You acknowledge that it may not be possible to sell Shares during the term of this 10b5-1 Plan due to (a) a legal or
contractual restriction applicable to you or to the broker, (b) a market disruption, (c) rules governing order execution priority on the New York Stock Exchange, (d) a sale effected pursuant to this 10b5-1 Plan that fails to comply
(or in the reasonable opinion of the broker’s counsel is likely not to comply) with Rule 144 under the Securities Act, or (e) if the Company determines that sales may not be effected under this 10b5-1 Plan. You acknowledge that this 10b5-1
Plan is subject to the terms of any policy adopted now or hereafter by the Company governing the adoption of 10b5-1 plans. 
 9.
Acknowledgement. The Company and you agree that the RSUs are granted under and governed by the Notice, this Agreement and the provisions of the Plan. You: (i) acknowledge receipt of a copy of the Plan prospectus, (ii) represent
that you have carefully read and are familiar with their provisions, and (iii) hereby accept the RSUs subject to all of the terms and conditions set forth herein and those set forth in the Notice. 

10. Entire Agreement; Enforcement of Rights. This Agreement, the Plan and the Notice constitute the entire agreement and understanding of the
parties relating to the subject matter herein and supersede all prior discussions between them. Any prior agreements, commitments or negotiations concerning the purchase of the Shares hereunder are superseded. No modification of or amendment to this
Agreement, nor any waiver of any rights under this Agreement, shall be effective unless in writing and signed by the parties to this Agreement. The failure by either party to enforce any rights under this Agreement shall not be construed as a waiver
of any rights of such party. 
 11. Compliance with Laws and Regulations. The issuance of Shares will be subject to and
conditioned upon compliance by the Company and you with all applicable state, federal and foreign laws and regulations and with all applicable requirements of any stock exchange or automated quotation system on which the Company’s Common Stock
may be listed or quoted at the time of such issuance or transfer. 
 12. Governing Law; Severability. If one or more provisions of
this Agreement are held to be unenforceable under applicable law, the parties agree to renegotiate such provision in good faith. In the event that the parties cannot reach a mutually agreeable and enforceable replacement for such provision, then
(i) such provision shall be excluded from this Agreement, (ii) the balance of this Agreement shall be interpreted as if such provision were so excluded and (iii) the balance of this Agreement shall be enforceable in accordance with
its terms. This Agreement and all acts and transactions pursuant hereto and the rights and obligations of the parties hereto shall be governed, 

 
construed and interpreted in accordance with the laws of the State of Delaware, without giving effect to principles of conflicts of law. For purposes of litigating any dispute that may arise
directly or indirectly from the Plan, the Notice and this Agreement, the parties hereby submit and consent to litigation in the exclusive jurisdiction of the State of California and agree that any such litigation shall be conducted only in the
courts of California or the federal courts of the United States for the Northern District of California and no other courts. 
 13. No Rights as
Employee, Director or Consultant. Nothing in this Agreement shall affect in any manner whatsoever the right or power of the Company, or a Parent or Subsidiary of the Company, to terminate your Service, for any reason, with or without cause.

 14. Consent to Electronic Delivery of All Plan Documents and Disclosures. By acceptance of this RSU, you consent to the electronic delivery
of the Notice, this RSU Agreement, the Plan, account statements, Plan prospectuses required by the Securities and Exchange Commission, U.S. financial reports of the Company, and all other documents that the Company is required to deliver to its
security holders (including, without limitation, annual reports and proxy statements) or other communications or information related to the RSU. Electronic delivery may include the delivery of a link to a Company intranet or the internet site of a
third party involved in administering the Plan, the delivery of the document via e-mail or such other delivery determined at the Company’s discretion. You acknowledge that you may receive from the Company a paper copy of any documents delivered
electronically at no cost if you contact the Company by telephone, through a postal service or electronic mail at stockadmin@modeln.com. You further acknowledge that you will be provided with a paper copy of any documents delivered electronically if
electronic delivery fails; similarly, you understand that you must provide on request to the Company or any designated third party a paper copy of any documents delivered electronically if electronic delivery fails. Also, you understand that your
consent may be revoked or changed, including any change in the electronic mail address to which documents are delivered (if you have provided an electronic mail address), at any time by notifying the Company of such revised or revoked consent by
telephone, postal service or electronic mail at stockadmin@modeln.com. Finally, you understand that you are not required to consent to electronic delivery. 

15. Code Section 409A. For purposes of this Agreement, a termination of employment will be determined consistent with the rules relating to
a “separation from service” as defined in Section 409A of the Internal Revenue Code and the regulations thereunder (“Section 409A”). Notwithstanding anything else provided herein, to the extent any payments provided
under this Agreement in connection with your termination of employment constitute deferred compensation subject to Section 409A, and you are deemed at the time of such termination of employment to be a “specified employee” under
Section 409A, then such payment shall not be made or commence until the earlier of (i) the expiration of the six-month period measured from your separation from service from the Company or (ii) the date of your death following such a
separation from service; provided, however, that such deferral shall only be effected to the extent required to avoid adverse tax treatment to you including, without limitation, the additional tax for which you would otherwise be liable under
Section 409A(a)(1)(B) in the absence of such a deferral. To the extent any payment under this Agreement may be classified as a “short-term deferral” within the meaning of Section 409A, such payment shall be deemed a short-term
deferral, even if it may also qualify for an exemption from Section 409A under another provision of Section 409A. Payments pursuant to this section are intended to constitute separate payments for purposes of Section 1.409A-2(b)(2) of
the Treasury Regulations. 
 BY ACCEPTING THIS RSU, YOU AGREE TO ALL OF THE TERMS AND CONDITIONS DESCRIBED ABOVE AND IN THE PLAN.

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00224-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00224-of-00352.parquet"}]]