Remove obsolete code
Refactor dependency handling in sg
Use a * to allow all values in sgLabels