Removing unused directory references