If the subfloor is still solid underneath, you will most likely not need an overall total replacement.
You know ice what looks perhaps a nut, or perhaps octagon was you can put a wrench as well as twist. https://Homedesignlooks.com/construction-tips-for-a-successful-project/