Remove shared pointer from Phase.