Move to a private function to initialize the subtarget dependencies