[C++ OTF]: refactor retrieval of presence.