Create helper class/functions to centralize knowledge about artifact structure

The following discussion from !920 (merged) should be addressed:

  • @sstriker started a discussion: (+1 comment)

    We should file a tech debt issue to refactor all access to the artifact structure into a separate class/helper functions. I don't like the idea of further spreading knowledge about the layout of the artifact into multiple places in the codebase.