This can be converted to:

```
deprecated_pods = root_specs.select do |spec|
  spec.deprecated || spec.deprecated_in_favor_of
end
```