Court rejects prosecutor role in mental health custody ...