Smart merging of core rules