Parses configuration option to the desired AdminMode.
static AdminMode fromOption(dynamic option) { if (option is bool) { return option ? admin : nonAdmin; } return auto; }