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