`deprecated` as both decorator and decorator factory