Generally speaking, depending on the issue with the old engine it can be more cost-effective to replace it. As it is more time-consuming to rebuild the engine.
What issue are you experiencing with the engine?
I have attached diagrams for engine replacement below your reference.
Please let me know if you have any questions.
Thank you.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.