[Common] Remove entitymanager reference from csv generator