(4) The department shall establish rules of eligibility for the programs authorized by ORS 430.565 and this section, considering such factors as residency, duration of dependency on drugs or controlled substances, failure of previous attempts at abstinence and other relevant factors.