Reduce testcases to common ancestor => reduce code duplication