Twofold role of columnar defects in iron based superconductors