simplify node existence checks in AbstractService and delete commented-out code