From Defects to Boundaries