On defect CFT and path integral methods for entanglement in quantum field theories