Refactoring in SchemaDumpController.php