Update refactor API