For residential and commercial loans, many banks used to have underwriters and appraisors on their staff, along with all the necessary support folks. Now most farm it out to companies like WAC for a fee.