Fix internal deprecation message