extract normalize_facts from get_fact to make it easier to test