Removing redundant lookups.