(#23305) Add deprecation message for use of parent in new type