Refactoring the Eloquent class.