pub async fn handle_remove_function(params: Option<Value>) -> Result<Value>
Remove a function with dependency checking