Disable deprecated function warning within another deprecated function.