Move local_variables to request