I think you could shorten this with something like:

```ruby
engineering_products = @activation_key.content_view.products(@activation_key.environment)
marketing_products = engineering_products.map { |ep| ep.custom? ? ep.name : ep.market_products.map(&:name) }.flatten
```