cainteoir: remove the internal helper class; use metadata, tts engine and document separately