Remove AllowedParentTypesas it is useless.