Refactor Prism escape

Change-Id: Ibb5abdb0dad2f1b8c8b86cd9a3f738dc1068fc8e