As per https://github.com/googleapis/librarian/pull/2666#discussion_r2461443454, we should move `addAPIToLibrary` to be a method on the `config.LibrarianState` object
As per #2666 (comment), we should move
addAPIToLibraryto be a method on theconfig.LibrarianStateobject