USB-C ports and MagSafe port have separate guides; battery removal involves an adhered cell and a cable under the logic board.
What to check before buying
Battery
iFixit describes an adhered battery with a cable routed beneath the logic board. Replacing it involves more than lifting a bottom-cover module.
Charging ports
USB-C and MagSafe charging connectors have different guides. A single damaged USB-C socket need not be treated as a MagSafe failure.