Resolving cyclic dependencies in daemon.