code: func Domain(named Named) string {
  	if r, ok := named.(namedRepository); ok {
  		return r.Domain()
  	}
  	domain, _ := splitDomain(named.Name())
  	return domain
  }
docs: // Domain returns the domain part of the Named reference