Best is someone familiar with the LLM based coding tools to help the calibre team refactor their code.
IMHO, calibre components can be replaced with other tools, but very difficult to assemble and engage an open source team successfully as they have shown. I have the same view on VLC also