Minor refactoring of a DObject private method