A linearization of PDEs based on conservation laws