Commonize duplicated code. Reload setting after conf file changed.