WARNING: This page is about a different car, the 2020 Mazda CX-30. However, it is still accessible from the selected car via links, so may be relevant.
While locking the oil pump against rotation as shown in the illustration, remove the oil pump driven sprocket installation bolt.