Refactor DI for orchestra/memory.

Signed-off-by: crynobone <crynobone@gmail.com>