Cleanup duplicate defs.