Remove unused code and add future post visibility support