Remove expectNoError from pkg/registry