Remove the dependency of the global `$config`