Refactor Backend. libd is not aware of it anymore.