two-stage search for flexibility in judicial review principles