Remove dependency on GearmanClient out of factories