You can remove that method.
This method is used for compatibility purposes when agent checks were not using checks.d and were configured using datadog.conf