Refactored GetEntByID() to make implementation of ApplyDupeInfo() a bit nicer.