Move implementation of local_make_let to own file