Remove DeprecationWarning and allow any regular callable