Cleanup merge's unused codes