Do we need the same check on `getSecurity` function?
```
getSecurity: function(network) {
    // Bug 791506: Code for backward compatibility. Modify after landed.
    return network.security === undefined ?
      network.capabilities : network.security;
  },
```