Use a deprecation warning or raise an exception