Rafactoring and remove duplicate code in entity generator command