Convert broken requires to locals