Factorize some code in model abstract save method