BACKLOG-933: base entity id on chosen domain