Refine all relations