In ENT: Hatchery, we found out that it takes three officers, including the CMO to determine an illegal order, or an unstable captain.
Two different organizations. In "Turnabout Intruder", it seemed no one had the authority to remove Kirk. In "Obsession", it seemed like it would take only Spock and McCoy.