A county district which is included entirely within another district created by special law, or pursuant to Chapter 5 (commencing with Section 40300), shall cease to function and exercise its powers upon the date the other district commences to function and exercise its powers.