Re-created styling for AI-XML authoring

Since this function is used only within the scope of this test, I think it makes more sense to declare it as a local variable using `var`.