makeRelativeRefTo checks tablesNextToCode, so we don't have to before using it