The attorney general shall be the legal adviser of the public employees retirement board.