Factored out HasAttributedStringRepresentation interface