[refactoring] pull up the method to remove common fragments into the base class
add function to remove unmodified elements from target of link detection
implement a function to set a lower threshold for fragments to be registered into db