Refactor handle_update_fee to wrapper error handling function