Revert D26333953: [StaticRuntime] Clean up output references and remove dead code
Test Plan: revert-hammer
Differential Revision:
D26333953 (https://github.com/pytorch/pytorch/commit/0c9d72b5e11e9d3e706eaf1c07406a0cebfe27c7)
Original commit changeset: cadc0595ad6a
fbshipit-source-id: 75d0b33099342653cd8867b129139325789aee6c