i see you're calling `Katello.pulp_server.resources.content` a bunch. you could break that out into a method:

```ruby
# ...
private

def pulp_content
  Katello.pulp_server.resources.content
end
```

so that would allow you to call `pulp_content.upload_bits(params[:id], params[:offset], params[:content])`