Domtar rewrites rules for paper and pulp production