Can onArtifactInstalled be inlined?