created base framework for fuction to do dependant removal sanity checks.