Removed duplicate duplicate definition check.