Eliminate unused functions and type Outlet