This hi-limit thermostat acts as a safety mechanism that keeps the dryer from overheating. Once the dryer temperature reaches a certain point, this piece will shut down power to the heating element.
Remove 4 screws on plastic cover of hinge that connects to the door. An assistant will come in handy at this point to hold the door. Then remove 2 screws holding hinge. Push up on hinge and pull out to remove hinge bracket. Hinge pins has plastic covers that need to be in place before attaching to the door. A small amount of vaseline will hold them in place.