Remove unpublished pages from the hierarchy