Add types for derivation capabilities from table.
Update around table derivation
Update signature of defineTableTypes.
Add templates for TableDerivation.
Integrate table derivation templates.
Remove old definitions.
Expire redundant codes.