/// Create a namespace tree from a passed selector
///
/// @param {list} $selector - The selector from which to create the module tree
@function module-tree($selector) {
  $parent-module: $module;

  // Remove any modifers
  $selectors: remove-modifiers($selector);

  // Remove any junk characters
  $selectors: remove-junk($selectors);

  // Spoof our selectors into a list
  $selectors: str-replace($selectors, ' ', ', ');
  $selectors: selector-parse($selectors);

  @return $selectors;
}