SERVER-1891 Consolidate command authorization checking logic.