[TASK] Removes safety condition, getTargetSelector function has unit test coverage