Factor out another record creation

We don't actually use the record we're searching for anywhere (we only
care that it exists), so just make it inline and throw it away.