Removing unused variables from apiProxy