All agencies of state and local government, including counties and municipal and public corporations, shall, whenever possible, carry out powers vested in them in manners which are consistent with the provisions of this chapter.