I can't answer as to whether or not the library sought legal advice from a lawyer. I don't know if they have those skill sets on staff. They explained it's at the discretion of the presiding judge so it doesn't take away from anybody's rights.
Quite frankly, 25 years is a random number. Who thought of that to start with? Why did they decide on 25 years? Quite frankly I think that at that time, 25 years was a long term but today, as people live longer, it's not as long.
I've talked to the Minister of Justice about this and he never brought up anything that would be contrary to the charter.