chore(engine): remove duplicate code

related to #CAM-1453