Convert CronJob exists query to entityQuery.
Introduct DI and Manager.