WARNING: This page is about a different car, the 2007 Subaru Outback and 2007 Subaru Legacy. However, it is still accessible from the selected car via links, so may be relevant.
Remove the 2 mounting bolts and remove the oil return cover and gasket.
Remove the mounting bolt and remove the oil flow control solenoid valve.
Fig 1: Identifying Oil Flow Control Solenoid Valve, Oil Return Cover And Camshaft Cap