Remove objectNameFor which is unused

I left the test file in as I added a new test in another PR, probably still won't merge cleanly knowing my luck though