Economic uncertainty will require mortgage companies to be more flexible in how they scale their operations.