refactor warehouse file models_generic to models