Remove unnecessary params class and move top-scope variable logic to dynamic_hosts class