Remove redundand class in cpdetector projects and update dependency