This is not the place for it. The deprecation is on MaxLength, not on this piece of code