Maybe we can move this logic to the decorator and do something like:
```ruby
<%= render partial: category.type, locals: category.locals %>
```