Simplify getNewInstance

getNewInstance doesn't use the $item array, and the writer already has access to the entity metadata so might as well access it internally instead of passing it as an argument.
Merge pull request #112 from gnat42/patch-3

Simplify getNewInstance