There are other derating locations such as Annex B for "engineered installations", but, for everyday use 310.15(B)(2) and the ambient listings are the norm.
It is important to remember that in derating you use the conductor insulation rating, normally 90 deg.
When applying derating to #12s as in your example, as jumper shows, the end result is normally a mute point until you get to your 10th current carrying conductor. With THHN and Romex having a 90 degree insulation you start off with a 30 amp rating. Until you get to the 10th ccc, 70% is your highest rating (ignoring ambient) so you have an end ampacity of 21 amps which is higher than the 240.4 allowed OCP of 20 amps.
Obviously in 240(G) applications such as motors the result may be different.