automation in law