Issue #508 Refactor the sandbox code out of the pipeline package