It is only necessary to lower the headliner. Only do those step in headliner replacement that will lower the headliner enough to gain access to the part. Refer to
Headlining Trim Panel Replacement.
Disconnect the electrical connector from the sunroof module.
Disconnect the front and rear drain hoses from the sunroof module.
Have an assistant support the sunroof module.
Remove the bolts from the sunroof module.
Remove the sunroof module from the vehicle with an assistant.