Any person subject to this code who does either of the following is a principal:
(1) Commits an offense punishable by this code, or aids, abets, counsels, commands, or procures its commission.
(2) Causes an act to be done which if directly performed by him or her would be punishable by this code.