Maintain API compatibility with new and deprecated APIs, display notice if using old API