Move 'title' method to data class.