No agency of the state, formed pursuant to general law or special act, for the local performance of governmental or proprietary functions within limited boundaries and which has as its primary function the control and conservation of floodwaters, shall contract to provide engineering or surveying services, as defined by Chapter 7 (commencing with Section 6700) and Chapter 15 (commencing with Section 8700), respectively, of Division 3 of the Business and Professions Code, except with another governmental agency whose boundaries encompass all or a portion of the agency performing the services, or where the agencies have a mutual interest in the project or area of service for which such engineering or surveying services are to be performed.
The provisions of this section shall not be applicable to any contract executed by any such agency prior to the effective date of this section.