Any court or magistrate before whom there may be pending any proceeding for a violation of RCW
9.66.030, shall, in addition to any fine or other punishment which it may impose for such violation, order such nuisance abated, and all property unlawfully used in the maintenance thereof destroyed by the sheriff at the cost of the defendant: PROVIDED, That if the conviction was had in a district court, the district judge shall not issue the order and warrant of abatement, but on application therefor, shall transfer the cause to the superior court which shall proceed to try the issue of abatement in the same manner as if the action had been originally commenced therein.