Code refactoring for SyncHostsUtils during bootstrap node