Move mergeRules into validation method