Refactor web_console.process_whitelisted_ips initializer