i loosen the cap before i remove any of the lines. when fuel comes out i just let the sucker drain back into the tank. you may cop a face full though so be careful.
also, youve got some ugly looking wiring jobbie in your boot, clean it up before letting fuel all over the place.