Prevent code duplication in merge.