Reducing duplicate code in our applications using HATEOAS | Hacker News Reader