Refactor FDSServiceImpl, and remove unused InMemory* classes.