Refactoring into Scala Type Classes | Hacker News Reader