Refactor rake task for updating blogs and analytics set up