Apply which only for the necessary extensions.