Clean up the area merge function.