Moved some logic to SesameRepositoryDataManager.

Change-Id: I043463dff28c76fef6508dbaeea31f6b58ad65e7