Pass the correct call stack to deprecated