Refactor the getBlog