Move segmentation macros to dedicated folder