Refactoring before_save in user model