util/extensions: Add function for chaining tables.