Unless the factors that make for standard and legitimate language are different from those that make it non-standard and illegitmate, (hard to imagine) it should be enough to simply ask, "What are the factors that make a language standard and legitimate?"
Otherwise ask, "What are the factors that make a language standard and legitimate versus those that make it non-standard and illegitima