I wouldn't get rid of this method, as it provides some clarity to the code. You can still change 
`return (this.getSecurityType(network).indexOf('EAP') != -1);` for `return (!WifiHelper.getKeyManagement(network).indexOf('EAP') === -1);`