Move the odd code that provides a hierarchical display for projects within the IDEs to its own module.