raise_deprecated and with_strategy