Only create a duplicate definition error for unique definitions.