move PatchingResult to tools package