It would be very nice to have a rules integration. This should include a condition to check the license of a node as well as an action to manipulate the license.