Refactoring try for models