Revert "Switch from a_info accesses to artifacts_get()"

This reverts commit a44da78574cdb5b18e57da36c4832b263f4cba1c.
Revert "remove unused variable warning"

This reverts commit c1f477b84c145cc8224133d838e0a78b7f7bb825.