Refactor correlatable/table references

Extract TableReference interface from Correlatble
Rename visitors and update references