Remove redundant folders.