Introduce Locator abstraction to hook service
In order to break dependency on the shared global config.Config variable the Locator interface is injected into the service. Calls that eventually lead to global config.Config var were removed.
Part of: #2699 (closed)