Removing unused map iterator access from factory.