The issue with said laws is the intentional ambiguity which means you can / can not endorse any decision. The simple solution would be to change the wording of the offside law. If a player affects the defending team then he is offside. Job done - flag up and move on.