How about using a variable here to make this easier to read?

```ruby
envs = KTEnvironment.content_readable(current_organization).all
envs += KTEnvironment.changesets_readable(current_organization).all.map { |env| env.prior if env.prior }.compact
envs.uniq
```