How to eliminate this type of recursion? | Hacker News Reader