Refactoring a little the model_helper class