Extract HookedGearmanWorker to worker_class