`refs` seems to only get filled in and then never used. It should probably go.