common/inject: refactor helpers to use new errortag interface