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