refactor: reuse implementation of _getId