Cleaned up deprecation notice.