Removes duplicates from import paths

This code is useless after #1069 was merged.