Refactor process pets