Refactor class definition using shorter syntax
Extract method definition logic from #has_history