WARNING: This page is about a different car, the 2006 Subaru Outback and 2006 Subaru Legacy. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the ground cable from battery.
Turn the trunk room light counterclockwise 60° to remove it and disconnect the harness connector.