Refactor: Extract _email_was private method from _flush_cache in User model.