How to use Query Objects to refactor Rails SQL-queries | Hacker News Reader