It Takes a Graph to Know a Graph: Rewiring for Homophily with a Reference Graph