Removes duplicates from import paths

This code has become useless after #1069 was merged.