Move delete function to category service.