Reduce some duplication in Action::getRestriction(), all but 2 (plus one extension...