Rewrite cron jobs
They're based on a dated structure, and used mainly to email and generate pdfs. So a bit of work cand be used to adapt them.
Notably, full integration as a class, routed - but not usable from something else than a cron job - with a dedicated class will help having the code readable.