Refactor single doc into multiple pages