Remove unused merge function