refactoring and using the dynamic view property in the TDReplicationobject