The Automation of Regulatory Obligations