Refactored build command into new BuildGenerator class to decouple from Symfony command class