Refactoring redundant code

Reafactored Iterator code in Factory Map to remove redundant code. Only
MyEntrySetIterator has implementation. Other iterators delegate to it