Converts a function value parameter to a context parameter and updates usages.