add model's constants class generation + some method extractions