You can just do:
```ruby
link_to_file = ::Projects::FileService.new(repository, params, root_url).
  execute

```