I am 100% open to the fact that it may not be possible to do this, since nat-lang is its own special little thing, and trying to apply fixes to it may be nonsensical themselves
The word subroutines would be cross-references to potentially more complex concepts akin to "one cannot end life (§3.14.159) unless working (§8.6.753) in a job (§127.0.1) that allows State violence" where the boundaries of what this legislation cares about 'ending life,' the boundaries around 'working,' the boundaries of a 'job' would then be composed into 'citizen cannot kill other citizen'.
I always got the impression that the nuance between murder and manslaughter wasn't in their degree of unlawfulness but rather in their sentencing, but I am deeply thankful that I haven't needed to know