I have just done the same job. removed the entire airbox in order to replace the fuel line from fuel pump to injectors (split)
After the tank is off and the ECU out of the way, you can remove the airbox.
DO NOT split the 2 halves of the airbox along the middle with it in situ.
Firstly the screws that hold the 2 halves together are very awkward to get to, but once they are all removed you cannot remove the top piece as the air intake trumpets on inside the air box catch on the top as you try to remove it. (ask me how I know)
You have to remove the whole airbox complete.
Remove the 2 top rad bolts to drop the rad slightly out of the way, undo all the electrical connectors. pull the drain/vent line out (which connects to the front bottom of the airbox) undo the 2 screws that hold the box (to sure what it is) onto the right side of the airbox between the frame bars, and pull the box away from the airbox. now undo the large jubilee clips that secure the air intakes to the bottom of the airbox.
It should now pull out, wiggle it up off the 2 inlet manifolds, then wiggle it down at the front, and up at the back and pull backwards, it comes out honest!!!
It is tight and tends to catch on the front frame at the top.
When refitting push it back in (tight). To get the manifolds on, line it up as best you can, get the front one on firs, its hard because you can't push down very well. I used a large spanner to pry bar GENTLY between the horizontal frame tube and the top of the airbox. This pushed the airbox down at the front and seated it onto the manifold, the rear is much easier as you can wiggle and push down more easily. Do up the jubilee clips, reconnect everything and job done.
PIG of a job, I am sure I could do it quickly a second time, but I hope I will never have to !!!
Good luck.