Reduce dependency on Item_factory [CR]

Reduce the visibility of `Item_factory`.

Item_factory is still used for item spawning, should those functions be moved to the "item_group.h"? Or somewhere else?