[DyConf] Refactor daemon code