A trust is extinguished by the entire fulfillment of its object or by such object's becoming impossible or unlawful.