Simplify Shader::GetVariation code