added new factory for removeDog function