Define real functions to get better deprecation messages (function name is used in message).