Refactoring provenance calls