Refactor accidental exposure of ScheduledThreadPoolExecutor in config