This MR refactors the config policy module to use the new endpoint API instead of the deprecated base endpoint API.