Removed relational model and replaced with metadata model where needed.

Updated related code and tests.
This needs to call OperationProcessor.Process at the end.