20. The rules contained in this chapter are controlled by any contract between the dominant and servient owners relating to the servient heritage, and by the provisions of the instrument or decree, if any, by which the easement referred to was imposed.