A. The county attorney of the county in which the prospective adoptive parent resides or, if applicable, the county where the child is a ward of the court, on application of the person or persons seeking adoption, shall prepare the adoption petition and act as attorney without expense to the prospective adoptive parent. The county attorney may also prepare a petition to terminate the parent-child relationship pursuant to chapter 4, article 5 of this title and act as attorney without expense to the prospective adoptive parent. If an adoption is made through an adoption agency licensed pursuant to this title, the agency shall prepare the petition for adoption and shall submit it to the county attorney. If either petition is contested the county attorney, with the consent of the court, may withdraw from further representation of any party to the proceeding and the prospective adoptive parent shall employ counsel.
B. Notwithstanding subsection A of this section, the county attorney:
1. Shall not prepare a petition or act as the attorney for a prospective adoptive parent seeking adoption pursuant to title 14, chapter 8.
2. Is not required to act as an attorney for the prospective adoptive parent concerning the enforcement or modification of an agreement entered into pursuant to section 8-116.01.