or if you have an Output class, change cite to:

    def cite
      head :bad_request if citations.empty?
      Output.get_const(to_format.constantize).new(citations).handle()
    end