Generalize automation to work with v2 of the assets plugin