The attorney general shall be the legal adviser of the board.