Migrate DeprecatedFunctionsCheck to CodeCheckVisitor