Rafactoring and remove duplicate code in entity generator command

The Command class in the configure method not accept parameters
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Command/Command.php#L147