Extracted shared logic into DsrManager.