def get_divisions(division, ignored_sections):
  """Gets division in a list after removing the ignored_paths.

  Args:
    division: Division object
    ignored_sections: Sections to ignore

  Returns:
    List of sections for bundling

  """

  def is_content_division(item):
    """Removes ignored_section.

    Args:
      item: section to be checked

    Returns:
      False if item is to be ignored else returns true

    """

    if item in ignored_sections:
      return False

    item_list = item.split("/")
    if item_list[0] in ignored_sections:
      return False

    return True

  return ([item for item in division if is_content_division(item)],
          [item.replace(ignored_sections[0] + "/", "")
           for item in division if not is_content_division(item)])