Could looking up the latest version be encapsulated inside of artifact.version?