Refactoring and adding ability to specify what table descendants and links are stored in.