This line is a bit clumsy with the "if publishing…when republishing" sentence structure.