Refactor _parsePosts