Pre-publishing clean up.