Move all the reading of the blog data into a separate function