Remove unnecessary REST variables.