Then remove the high pressure line.
This tool holds the pump sprocket in place while the pump is removed. It threads into a hole in the back of the engine. There is a 17mm plastic plug that needs to be removed before inserting it.
Here it is, threaded into place. The actual BMW tool for this task is a 2 piece assembly, so your tool may not match but they work similarly. This MUST stay in place while the pump is removed or you will need to pull the engine and reset the timing
Then remove the 4 bolts that hold the bracket to the cylinder head and the pump. Followed by removal of the bracket, it's a tight squeeze, but it can be worked out of there
Remove the electrical connector for the pump
With the bracket out of the way, there are two bolts that hold the pump to the cylinder head, one here and one down below.
Loosen the last bolt holding the pump through the special tool in the back and work the pump forward off of the cylinder head.
And there it is with the pump removed