3967: Move populate_pubkey to its own function
3967: Move populate_condorq_dict_types to its own function
3967: Move populate_status_dict_types to its own function
3967: Move count_factory_entries_without_classads to its own function
3967: Move do_match into its own function