Wrap calling of phantom script in an additonal layer of abstraction