chore(engine): code cleanup

related to CAM-2903
chore(engine): use refactored spin API

related to CAM-2903