Restructure posts data.