Refactor table controller construction and documentation.