class OrganisationalManualDocumentAttachmentServiceRegistry < AbstractManualDocumentAttachmentServiceRegistry
  def initialize(dependencies)
    @organisation_slug = dependencies.fetch(:organisation_slug)
  end

private
  attr_reader :organisation_slug

  def manual_repository_factory
    ManualsPublisherWiring.get(:repository_registry)
      .organisation_scoped_manual_repository_factory
  end

  def repository
    manual_repository_factory.call(organisation_slug)
  end
end

class OrganisationalManualDocumentAttachmentServiceRegistry < AbstractManualDocumentAttachmentServiceRegistry
  def initialize(organisation_slug:)
    @organisation_slug = organisation_slug
  end

private
  attr_reader :organisation_slug

  def manual_repository_factory
    ManualsPublisherWiring.get(:repository_registry)
      .organisation_scoped_manual_repository_factory
  end

  def repository
    manual_repository_factory.call(organisation_slug)
  end
end

Use Ruby keyword args in OrganisationalManualDocumentAttachmentServiceRegistry
Use Ruby keyword args in OrganisationalManualDocumentAttachmentServiceRegistry

I think that using language features instead of custom code makes this
easier to understand.
