Move target_type_from_site in a proper file, increase parallelism of outer_fold