Since all these slugs are `begin{adjustwidth}{}{}` you should be able to clean this up a lot by settings the left and right variables to the string values they need to be or `''` if they aren't there then outside the conditional add to the slug.