Aspects of defects and integrability