A district may adopt a fire prevention code by reference pursuant to Article 2 (commencing with Section 50022) of Chapter 1 of Part 1 of Division 1 of Title 5 of the Government Code. For that purpose, the district board shall be deemed a legislative body and the district shall be deemed a local agency.